using FTPUpload;
using Microsoft.VisualBasic;
using Microsoft.VisualBasic.CompilerServices;
using SJMail;
using SJMail.SMTPSSL;
using SJNet;
using SJVars;
using SJXmlP.XMLClasses;
using SJZip;
using Spacejock;
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using yW2Lib;
using yW5Lib;
using yWriter6.My;
using yWriter6.My.Resources;

namespace yWriter6
{
	[DesignerGenerated]
	internal class frmMain : Form
	{
		private enum eCopyWhat
		{
			eSelected,
			eChapters,
			eAll
		}

		#region 字段

		

		
		private IContainer components;

		public ToolTip ToolTip1;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuFind")]
		private ToolStripMenuItem _mnuFind;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdFindNext")]
		private ToolStripMenuItem _cmdFindNext;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuFindPrev")]
		private ToolStripMenuItem _mnuFindPrev;

		[CompilerGenerated]
		[AccessedThroughProperty("mnubar3")]
		private ToolStripSeparator _mnubar3;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuGlobalReplace")]
		private ToolStripMenuItem _mnuGlobalReplace;

		[CompilerGenerated]
		[AccessedThroughProperty("pbarxz")]
		private ToolStripSeparator _pbarxz;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuFindAs")]
		private ToolStripMenuItem _mnuFindAs;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuFindLy")]
		private ToolStripMenuItem _mnuFindLy;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuFindIng")]
		private ToolStripMenuItem _mnuFindIng;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuFindThen")]
		private ToolStripMenuItem _mnuFindThen;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuFindTurned")]
		private ToolStripMenuItem _mnuFindTurned;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuFindGlanced")]
		private ToolStripMenuItem _mnuFindGlanced;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuFindMuttered")]
		private ToolStripMenuItem _mnuFindMuttered;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuFindSuddenly")]
		private ToolStripMenuItem _mnuFindSuddenly;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuFindLooked")]
		private ToolStripMenuItem _mnuFindLooked;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPredefined")]
		private ToolStripMenuItem _mnuPredefined;

		[CompilerGenerated]
		[AccessedThroughProperty("_mnuUDW_0")]
		private ToolStripMenuItem __mnuUDW_0;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuUD")]
		private ToolStripMenuItem _mnuUD;

		[CompilerGenerated]
		[AccessedThroughProperty("UseF3ToFindNext")]
		private ToolStripMenuItem _UseF3ToFindNext;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuNull")]
		private ToolStripMenuItem _mnuNull;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSearch")]
		private ToolStripMenuItem _mnuSearch;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuChapterNew")]
		private ToolStripMenuItem _mnuChapterNew;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuChapterMultiNew")]
		private ToolStripMenuItem _mnuChapterMultiNew;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuEditChapter")]
		private ToolStripMenuItem _mnuEditChapter;

		[CompilerGenerated]
		[AccessedThroughProperty("pbardash")]
		private ToolStripSeparator _pbardash;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuMarkEndBeginning")]
		private ToolStripMenuItem _mnuMarkEndBeginning;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuMarkEndMiddle")]
		private ToolStripMenuItem _mnuMarkEndMiddle;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuRenumber")]
		private ToolStripMenuItem _mnuRenumber;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuChapbar")]
		private ToolStripSeparator _mnuChapbar;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuMarkChaptersUnused")]
		private ToolStripMenuItem _mnuMarkChaptersUnused;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuRemoveChapter")]
		private ToolStripMenuItem _mnuRemoveChapter;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuChapters")]
		private ToolStripMenuItem _mnuChapters;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuAddScene")]
		private ToolStripMenuItem _mnuAddScene;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuEditScene")]
		private ToolStripMenuItem _mnuEditScene;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuAddMultiScenes")]
		private ToolStripMenuItem _mnuAddMultiScenes;

		[CompilerGenerated]
		[AccessedThroughProperty("pbarsc1")]
		private ToolStripSeparator _pbarsc1;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSetAllSceneFont")]
		private ToolStripMenuItem _mnuSetAllSceneFont;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuRemoveScene")]
		private ToolStripMenuItem _mnuRemoveScene;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuScene")]
		private ToolStripMenuItem _mnuScene;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuEditChar")]
		private ToolStripMenuItem _mnuEditChar;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuAddCharToScene")]
		private ToolStripMenuItem _mnuAddCharToScene;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuScenesPerCharacter")]
		private ToolStripMenuItem _mnuScenesPerCharacter;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuWordsPerCharacter")]
		private ToolStripMenuItem _mnuWordsPerCharacter;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuChar")]
		private ToolStripMenuItem _mnuChar;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuAddLocation")]
		private ToolStripMenuItem _mnuAddLocation;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuAddLocToCurrentScene")]
		private ToolStripMenuItem _mnuAddLocToCurrentScene;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuLocations")]
		private ToolStripMenuItem _mnuLocations;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuAddItem")]
		private ToolStripMenuItem _mnuAddItem;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuAddItemToCurrentScene")]
		private ToolStripMenuItem _mnuAddItemToCurrentScene;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuItems")]
		private ToolStripMenuItem _mnuItems;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuStoryboard")]
		private ToolStripMenuItem _mnuStoryboard;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuChart")]
		private ToolStripMenuItem _mnuChart;

		[CompilerGenerated]
		[AccessedThroughProperty("Pbarnone")]
		private ToolStripSeparator _Pbarnone;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuWordTarget")]
		private ToolStripMenuItem _mnuWordTarget;

		[CompilerGenerated]
		[AccessedThroughProperty("sep1")]
		private ToolStripSeparator _sep1;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuBackupProject")]
		private ToolStripMenuItem _mnuBackupProject;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSetupAutobackup")]
		private ToolStripMenuItem _mnuSetupAutobackup;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuAutobackups")]
		private ToolStripMenuItem _mnuAutobackups;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuBackupMenu")]
		private ToolStripMenuItem _mnuBackupMenu;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuCreateDebug")]
		private ToolStripMenuItem _mnuCreateDebug;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuViewLog")]
		private ToolStripMenuItem _mnuViewLog;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuDebugMenu")]
		private ToolStripMenuItem _mnuDebugMenu;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuUIFont")]
		private ToolStripMenuItem _mnuUIFont;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuWordUsageCount")]
		private ToolStripMenuItem _mnuWordUsageCount;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuTools")]
		private ToolStripMenuItem _mnuTools;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuLocalise")]
		private ToolStripMenuItem _mnuLocalise;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuAbout")]
		private ToolStripMenuItem _mnuAbout;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuManual")]
		private ToolStripMenuItem _mnuManual;

		[CompilerGenerated]
		[AccessedThroughProperty("pbarhelp")]
		private ToolStripSeparator _pbarhelp;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuYWWebPage")]
		private ToolStripMenuItem _mnuYWWebPage;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuGoogleGroup")]
		private ToolStripMenuItem _mnuGoogleGroup;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuWritingArticles")]
		private ToolStripMenuItem _mnuWritingArticles;

		[CompilerGenerated]
		[AccessedThroughProperty("toolsbar")]
		private ToolStripSeparator _toolsbar;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuCheckVersion")]
		private ToolStripMenuItem _mnuCheckVersion;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuHelp")]
		private ToolStripMenuItem _mnuHelp;

		[CompilerGenerated]
		[AccessedThroughProperty("MainMenu1")]
		private MenuStrip _MainMenu1;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdDiscardProjectNote")]
		private Button _cmdDiscardProjectNote;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdEditProjectNote")]
		private Button _cmdEditProjectNote;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdSaveProjectNote")]
		private Button _cmdSaveProjectNote;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdNewProjectNote")]
		private Button _cmdNewProjectNote;

		[CompilerGenerated]
		[AccessedThroughProperty("txtNoteTitle")]
		private TextBox _txtNoteTitle;

		[CompilerGenerated]
		[AccessedThroughProperty("txtNoteEditor")]
		private RichTextBox _txtNoteEditor;

		[CompilerGenerated]
		[AccessedThroughProperty("_ListNotes_ColumnHeader_1")]
		private ColumnHeader __ListNotes_ColumnHeader_1;

		[CompilerGenerated]
		[AccessedThroughProperty("ListNotes")]
		private ListView _ListNotes;

		[CompilerGenerated]
		[AccessedThroughProperty("txtChapterDesc")]
		private RichTextBox _txtChapterDesc;

		[CompilerGenerated]
		[AccessedThroughProperty("txtDesc")]
		private RichTextBox _txtDesc;

		[CompilerGenerated]
		[AccessedThroughProperty("txtBody")]
		private RichTextBox _txtBody;

		[CompilerGenerated]
		[AccessedThroughProperty("ListChar0Col1")]
		private ColumnHeader _ListChar0Col1;

		[CompilerGenerated]
		[AccessedThroughProperty("ListChar0Col2")]
		private ColumnHeader _ListChar0Col2;

		[CompilerGenerated]
		[AccessedThroughProperty("ListCharUsed")]
		private ListView _ListCharUsed;

		[CompilerGenerated]
		[AccessedThroughProperty("ListCharCol1")]
		private ColumnHeader _ListCharCol1;

		[CompilerGenerated]
		[AccessedThroughProperty("ListCharCol2")]
		private ColumnHeader _ListCharCol2;

		[CompilerGenerated]
		[AccessedThroughProperty("ListCharAll")]
		private ListView _ListCharAll;

		[CompilerGenerated]
		[AccessedThroughProperty("txtConflict")]
		private TextBox _txtConflict;

		[CompilerGenerated]
		[AccessedThroughProperty("txtOutcome")]
		private TextBox _txtOutcome;

		[CompilerGenerated]
		[AccessedThroughProperty("txtGoal")]
		private TextBox _txtGoal;

		[CompilerGenerated]
		[AccessedThroughProperty("lblGoal")]
		private Label _lblGoal;

		[CompilerGenerated]
		[AccessedThroughProperty("lblConflict")]
		private Label _lblConflict;

		[CompilerGenerated]
		[AccessedThroughProperty("lblOutcome")]
		private Label _lblOutcome;

		[CompilerGenerated]
		[AccessedThroughProperty("txtSceneNotes")]
		private RichTextBox _txtSceneNotes;

		[CompilerGenerated]
		[AccessedThroughProperty("txtSceneTitle")]
		private TextBox _txtSceneTitle;

		[CompilerGenerated]
		[AccessedThroughProperty("__ListLoc_0_ColumnHeader_1")]
		private ColumnHeader ___ListLoc_0_ColumnHeader_1;

		[CompilerGenerated]
		[AccessedThroughProperty("ListLocUsed")]
		private ListView _ListLocUsed;

		[CompilerGenerated]
		[AccessedThroughProperty("__ListLoc_1_ColumnHeader_1")]
		private ColumnHeader ___ListLoc_1_ColumnHeader_1;

		[CompilerGenerated]
		[AccessedThroughProperty("ListLocAll")]
		private ListView _ListLocAll;

		[CompilerGenerated]
		[AccessedThroughProperty("__ListItems_0_ColumnHeader_1")]
		private ColumnHeader ___ListItems_0_ColumnHeader_1;

		[CompilerGenerated]
		[AccessedThroughProperty("ListItemsUsed")]
		private ListView _ListItemsUsed;

		[CompilerGenerated]
		[AccessedThroughProperty("__ListItems_1_ColumnHeader_1")]
		private ColumnHeader ___ListItems_1_ColumnHeader_1;

		[CompilerGenerated]
		[AccessedThroughProperty("ListItemsAll")]
		private ListView _ListItemsAll;

		[CompilerGenerated]
		[AccessedThroughProperty("colVP")]
		private ColumnHeader _colVP;

		[CompilerGenerated]
		[AccessedThroughProperty("colWords")]
		private ColumnHeader _colWords;

		[CompilerGenerated]
		[AccessedThroughProperty("colScene")]
		private ColumnHeader _colScene;

		[CompilerGenerated]
		[AccessedThroughProperty("colStatus")]
		private ColumnHeader _colStatus;

		[CompilerGenerated]
		[AccessedThroughProperty("colAR")]
		private ColumnHeader _colAR;

		[CompilerGenerated]
		[AccessedThroughProperty("colFilename")]
		private ColumnHeader _colFilename;

		[CompilerGenerated]
		[AccessedThroughProperty("colLetters")]
		private ColumnHeader _colLetters;

		[CompilerGenerated]
		[AccessedThroughProperty("ListScenes")]
		private ListView _ListScenes;

		[CompilerGenerated]
		[AccessedThroughProperty("TimerUpdate")]
		private Timer _TimerUpdate;

		[CompilerGenerated]
		[AccessedThroughProperty("ImageList2")]
		private ImageList _ImageList2;

		[CompilerGenerated]
		[AccessedThroughProperty("TabControlScene")]
		private TabControl _TabControlScene;

		[CompilerGenerated]
		[AccessedThroughProperty("tabSceneDescription")]
		private TabPage _tabSceneDescription;

		[CompilerGenerated]
		[AccessedThroughProperty("tabSceneContent")]
		private TabPage _tabSceneContent;

		[CompilerGenerated]
		[AccessedThroughProperty("tabSceneCharacters")]
		private TabPage _tabSceneCharacters;

		[CompilerGenerated]
		[AccessedThroughProperty("tabSceneLocations")]
		private TabPage _tabSceneLocations;

		[CompilerGenerated]
		[AccessedThroughProperty("tabSceneItems")]
		private TabPage _tabSceneItems;

		[CompilerGenerated]
		[AccessedThroughProperty("tabSceneGoals")]
		private TabPage _tabSceneGoals;

		[CompilerGenerated]
		[AccessedThroughProperty("tabSceneNotes")]
		private TabPage _tabSceneNotes;

		[CompilerGenerated]
		[AccessedThroughProperty("TableLayoutPanel2")]
		private TableLayoutPanel _TableLayoutPanel2;

		[CompilerGenerated]
		[AccessedThroughProperty("TableLayoutPanel1")]
		private TableLayoutPanel _TableLayoutPanel1;

		[CompilerGenerated]
		[AccessedThroughProperty("TableLayoutGoals")]
		private TableLayoutPanel _TableLayoutGoals;

		[CompilerGenerated]
		[AccessedThroughProperty("TabControlMain")]
		private TabControl _TabControlMain;

		[CompilerGenerated]
		[AccessedThroughProperty("TabChapterScenes")]
		private TabPage _TabChapterScenes;

		[CompilerGenerated]
		[AccessedThroughProperty("tabProjectNotes")]
		private TabPage _tabProjectNotes;

		[CompilerGenerated]
		[AccessedThroughProperty("Panel1")]
		private Panel _Panel1;

		[CompilerGenerated]
		[AccessedThroughProperty("ListChapters")]
		private ListView _ListChapters;

		[CompilerGenerated]
		[AccessedThroughProperty("_ListChapters_ColumnHeader_1")]
		private ColumnHeader __ListChapters_ColumnHeader_1;

		[CompilerGenerated]
		[AccessedThroughProperty("_ListChapters_ColumnHeader_2")]
		private ColumnHeader __ListChapters_ColumnHeader_2;

		[CompilerGenerated]
		[AccessedThroughProperty("_ListChapters_ColumnHeader_3")]
		private ColumnHeader __ListChapters_ColumnHeader_3;

		[CompilerGenerated]
		[AccessedThroughProperty("_ListChapters_ColumnHeader_4")]
		private ColumnHeader __ListChapters_ColumnHeader_4;

		[CompilerGenerated]
		[AccessedThroughProperty("SplitContainer1")]
		private SplitContainer _SplitContainer1;

		[CompilerGenerated]
		[AccessedThroughProperty("TableLayoutPanel4")]
		private TableLayoutPanel _TableLayoutPanel4;

		[CompilerGenerated]
		[AccessedThroughProperty("Splitter1")]
		private Splitter _Splitter1;

		[CompilerGenerated]
		[AccessedThroughProperty("Splitter2")]
		private Splitter _Splitter2;

		[CompilerGenerated]
		[AccessedThroughProperty("Splitter3")]
		private Splitter _Splitter3;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxAllListsRC")]
		private ContextMenuStrip _ctxAllListsRC;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxAddToAllSel")]
		private ToolStripMenuItem _ctxAddToAllSel;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxRemoveFromAllSel")]
		private ToolStripMenuItem _ctxRemoveFromAllSel;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxListsRC")]
		private ContextMenuStrip _ctxListsRC;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxEditListItem")]
		private ToolStripMenuItem _ctxEditListItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxRemoveFromScene")]
		private ToolStripMenuItem _ctxRemoveFromScene;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxSetVP")]
		private ToolStripMenuItem _ctxSetVP;

		[CompilerGenerated]
		[AccessedThroughProperty("StatusStrip1")]
		private StatusStrip _StatusStrip1;

		[CompilerGenerated]
		[AccessedThroughProperty("tssStatus")]
		private ToolStripStatusLabel _tssStatus;

		[CompilerGenerated]
		[AccessedThroughProperty("tssWordcount")]
		private ToolStripStatusLabel _tssWordcount;

		[CompilerGenerated]
		[AccessedThroughProperty("tssVersion")]
		private ToolStripStatusLabel _tssVersion;

		[CompilerGenerated]
		[AccessedThroughProperty("tssPrintProgress")]
		private ToolStripStatusLabel _tssPrintProgress;

		[CompilerGenerated]
		[AccessedThroughProperty("ToggleChapterOtherToolStripMenuItem")]
		private ToolStripMenuItem _ToggleChapterOtherToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxScenes")]
		private ContextMenuStrip _ctxScenes;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxAddNewScene")]
		private ToolStripMenuItem _ctxAddNewScene;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxEditSelected")]
		private ToolStripMenuItem _ctxEditSelected;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator1")]
		private ToolStripSeparator _ToolStripSeparator1;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxSetStatus")]
		private ToolStripMenuItem _ctxSetStatus;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxToggleUsed")]
		private ToolStripMenuItem _ctxToggleUsed;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator2")]
		private ToolStripSeparator _ToolStripSeparator2;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxRemoveSelected")]
		private ToolStripMenuItem _ctxRemoveSelected;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSetStatus")]
		private ToolStripMenuItem _mnuSetStatus;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuUsedUnused")]
		private ToolStripMenuItem _mnuUsedUnused;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator3")]
		private ToolStripSeparator _ToolStripSeparator3;

		[CompilerGenerated]
		[AccessedThroughProperty("CombineSelectedChaptersToolStripMenuItem")]
		private ToolStripMenuItem _CombineSelectedChaptersToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("DeleteDuplicateScenesToolStripMenuItem")]
		private ToolStripMenuItem _DeleteDuplicateScenesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("colChar")]
		private ColumnHeader _colChar;

		[CompilerGenerated]
		[AccessedThroughProperty("colLocations")]
		private ColumnHeader _colLocations;

		[CompilerGenerated]
		[AccessedThroughProperty("colItems")]
		private ColumnHeader _colItems;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator4")]
		private ToolStripSeparator _ToolStripSeparator4;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxChapters")]
		private ContextMenuStrip _ctxChapters;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxChapNew")]
		private ToolStripMenuItem _ctxChapNew;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxChapEdit")]
		private ToolStripMenuItem _ctxChapEdit;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator5")]
		private ToolStripSeparator _ToolStripSeparator5;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxChapToggleUsed")]
		private ToolStripMenuItem _ctxChapToggleUsed;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxChapToggleType")]
		private ToolStripMenuItem _ctxChapToggleType;

		[CompilerGenerated]
		[AccessedThroughProperty("tssBackupButton")]
		private ToolStripSplitButton _tssBackupButton;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSceneList")]
		private ToolStripMenuItem _mnuSceneList;

		[CompilerGenerated]
		[AccessedThroughProperty("Panel2")]
		private Panel _Panel2;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuConvYW2Scn")]
		private ToolStripMenuItem _mnuConvYW2Scn;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrint")]
		private ToolStripMenuItem _mnuPrint;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintWorkSched")]
		private ToolStripMenuItem _mnuPrintWorkSched;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintOnStatus0")]
		private ToolStripMenuItem _mnuPrintOnStatus0;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintOnStatus1")]
		private ToolStripMenuItem _mnuPrintOnStatus1;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintOnStatus2")]
		private ToolStripMenuItem _mnuPrintOnStatus2;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintOnStatus3")]
		private ToolStripMenuItem _mnuPrintOnStatus3;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintOnStatus4")]
		private ToolStripMenuItem _mnuPrintOnStatus4;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintSummary")]
		private ToolStripMenuItem _mnuPrintSummary;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintSynopsis")]
		private ToolStripMenuItem _mnuPrintSynopsis;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintFullSynopsis")]
		private ToolStripMenuItem _mnuPrintFullSynopsis;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintProject")]
		private ToolStripMenuItem _mnuPrintProject;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintScene")]
		private ToolStripMenuItem _mnuPrintScene;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintSceneCards")]
		private ToolStripMenuItem _mnuPrintSceneCards;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintLocationList")]
		private ToolStripMenuItem _mnuPrintLocationList;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintChar")]
		private ToolStripMenuItem _mnuPrintChar;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintItemList")]
		private ToolStripMenuItem _mnuPrintItemList;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuProject")]
		private ToolStripMenuItem _mnuProject;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuLoadProj")]
		private ToolStripMenuItem _mnuLoadProj;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuOpenRecent")]
		private ToolStripMenuItem _mnuOpenRecent;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSaveProj")]
		private ToolStripMenuItem _mnuSaveProj;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSaveAs")]
		private ToolStripMenuItem _mnuSaveAs;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuCloseProject")]
		private ToolStripMenuItem _mnuCloseProject;

		[CompilerGenerated]
		[AccessedThroughProperty("pbarcreatetext")]
		private ToolStripSeparator _pbarcreatetext;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuNewProj")]
		private ToolStripMenuItem _mnuNewProj;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuProjectGen")]
		private ToolStripMenuItem _mnuProjectGen;

		[CompilerGenerated]
		[AccessedThroughProperty("pbart")]
		private ToolStripSeparator _pbart;

		[CompilerGenerated]
		[AccessedThroughProperty("pbarm")]
		private ToolStripSeparator _pbarm;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuExportProj")]
		private ToolStripMenuItem _mnuExportProj;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuExportHTML")]
		private ToolStripMenuItem _mnuExportHTML;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuCombineFiles")]
		private ToolStripMenuItem _mnuCombineFiles;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuExportToRTF")]
		private ToolStripMenuItem _mnuExportToRTF;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuExportNano")]
		private ToolStripMenuItem _mnuExportNano;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuExportOutline")]
		private ToolStripMenuItem _mnuExportOutline;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSaveSynopsis")]
		private ToolStripMenuItem _mnuSaveSynopsis;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuExportTimeline")]
		private ToolStripMenuItem _mnuExportTimeline;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuExportDesc")]
		private ToolStripMenuItem _mnuExportDesc;

		[CompilerGenerated]
		[AccessedThroughProperty("mnubar33")]
		private ToolStripSeparator _mnubar33;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSettings")]
		private ToolStripMenuItem _mnuSettings;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator7")]
		private ToolStripSeparator _ToolStripSeparator7;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuConfirmExit")]
		private ToolStripMenuItem _mnuConfirmExit;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuImportyWriter2")]
		private ToolStripMenuItem _mnuImportyWriter2;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuImportyWriter3")]
		private ToolStripMenuItem _mnuImportyWriter3;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator8")]
		private ToolStripSeparator _ToolStripSeparator8;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator9")]
		private ToolStripSeparator _ToolStripSeparator9;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxNotes")]
		private ContextMenuStrip _ctxNotes;

		[CompilerGenerated]
		[AccessedThroughProperty("PrintSelectedNotesToolStripMenuItem")]
		private ToolStripMenuItem _PrintSelectedNotesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuUIFontSize")]
		private ToolStripMenuItem _mnuUIFontSize;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuImportyWriter4")]
		private ToolStripMenuItem _mnuImportyWriter4;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuExportData")]
		private ToolStripMenuItem _mnuExportData;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmExportChar")]
		private ToolStripMenuItem _tsmExportChar;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmExportLocations")]
		private ToolStripMenuItem _tsmExportLocations;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmExportItems")]
		private ToolStripMenuItem _tsmExportItems;

		[CompilerGenerated]
		[AccessedThroughProperty("ImportFileToolStripMenuItem")]
		private ToolStripMenuItem _ImportFileToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuImportProject")]
		private ToolStripMenuItem _mnuImportProject;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuImportSceneFile")]
		private ToolStripMenuItem _mnuImportSceneFile;

		[CompilerGenerated]
		[AccessedThroughProperty("ImportDataToolStripMenuItem")]
		private ToolStripMenuItem _ImportDataToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ImportCharactersToolStripMenuItem")]
		private ToolStripMenuItem _ImportCharactersToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ImportLocationsToolStripMenuItem")]
		private ToolStripMenuItem _ImportLocationsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ImportItemsToolStripMenuItem")]
		private ToolStripMenuItem _ImportItemsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintSceneNotes")]
		private ToolStripMenuItem _mnuPrintSceneNotes;

		[CompilerGenerated]
		[AccessedThroughProperty("DeleteNoteToolStripMenuItem")]
		private ToolStripMenuItem _DeleteNoteToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator10")]
		private ToolStripSeparator _ToolStripSeparator10;

		[CompilerGenerated]
		[AccessedThroughProperty("ConfigureFTPSitesToolStripMenuItem")]
		private ToolStripMenuItem _ConfigureFTPSitesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("BackupToFTPToolStripMenuItem")]
		private ToolStripMenuItem _BackupToFTPToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator11")]
		private ToolStripSeparator _ToolStripSeparator11;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxChapMarkMiddle")]
		private ToolStripMenuItem _ctxChapMarkMiddle;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxChapMarkEnd")]
		private ToolStripMenuItem _ctxChapMarkEnd;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSaveToSingleFile")]
		private ToolStripMenuItem _mnuSaveToSingleFile;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator12")]
		private ToolStripSeparator _ToolStripSeparator12;

		[CompilerGenerated]
		[AccessedThroughProperty("OpenRTFWithDefaultEditorToolStripMenuItem")]
		private ToolStripMenuItem _OpenRTFWithDefaultEditorToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("FinishedWithExternalEditorToolStripMenuItem")]
		private ToolStripMenuItem _FinishedWithExternalEditorToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("LoadPreviousProjectOnStartupToolStripMenuItem")]
		private ToolStripMenuItem _LoadPreviousProjectOnStartupToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator13")]
		private ToolStripSeparator _ToolStripSeparator13;

		[CompilerGenerated]
		[AccessedThroughProperty("DailyBackupToolStripMenuItem")]
		private ToolStripMenuItem _DailyBackupToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuExportSelectedChapters")]
		private ToolStripMenuItem _mnuExportSelectedChapters;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator14")]
		private ToolStripSeparator _ToolStripSeparator14;

		[CompilerGenerated]
		[AccessedThroughProperty("colDesc")]
		private ColumnHeader _colDesc;

		[CompilerGenerated]
		[AccessedThroughProperty("colDateTime")]
		private ColumnHeader _colDateTime;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuDailyWritingTargetToolStripMenuItem")]
		private ToolStripMenuItem _mnuDailyWritingTargetToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator15")]
		private ToolStripSeparator _ToolStripSeparator15;

		[CompilerGenerated]
		[AccessedThroughProperty("OneDayWritingWorksheetToolStripMenuItem")]
		private ToolStripMenuItem _OneDayWritingWorksheetToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("CreateTemplatetxtFileToolStripMenuItem")]
		private ToolStripMenuItem _CreateTemplatetxtFileToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("RewriteAllLanguageFilesToolStripMenuItem")]
		private ToolStripMenuItem _RewriteAllLanguageFilesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ExportSelectedScenesToolStripMenuItem")]
		private ToolStripMenuItem _ExportSelectedScenesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdSaveGoals")]
		private Button _cmdSaveGoals;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdSaveSceneNotes")]
		private Button _cmdSaveSceneNotes;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdSaveSceneDesc")]
		private Button _cmdSaveSceneDesc;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuChooseLang")]
		private ToolStripMenuItem _mnuChooseLang;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator17")]
		private ToolStripSeparator _ToolStripSeparator17;

		[CompilerGenerated]
		[AccessedThroughProperty("ScenesToolStripMenuItem")]
		private ToolStripMenuItem _ScenesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator16")]
		private ToolStripSeparator _ToolStripSeparator16;

		[CompilerGenerated]
		[AccessedThroughProperty("AppendYWriter5ProjectToolStripMenuItem")]
		private ToolStripMenuItem _AppendYWriter5ProjectToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator6")]
		private ToolStripSeparator _ToolStripSeparator6;

		[CompilerGenerated]
		[AccessedThroughProperty("QuickstartGuidePDFToolStripMenuItem")]
		private ToolStripMenuItem _QuickstartGuidePDFToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("RecommendedBooksOnWritingToolStripMenuItem")]
		private ToolStripMenuItem _RecommendedBooksOnWritingToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("TabProjectChar")]
		private TabPage _TabProjectChar;

		[CompilerGenerated]
		[AccessedThroughProperty("ListProjectCharacters")]
		private ListView _ListProjectCharacters;

		[CompilerGenerated]
		[AccessedThroughProperty("_ListItems_ColumnHeader_1")]
		private ColumnHeader __ListItems_ColumnHeader_1;

		[CompilerGenerated]
		[AccessedThroughProperty("_ListItems_ColumnHeader_2")]
		private ColumnHeader __ListItems_ColumnHeader_2;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader1")]
		private ColumnHeader _ColumnHeader1;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader2")]
		private ColumnHeader _ColumnHeader2;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader3")]
		private ColumnHeader _ColumnHeader3;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader4")]
		private ColumnHeader _ColumnHeader4;

		[CompilerGenerated]
		[AccessedThroughProperty("txtCharDesc")]
		private TextBox _txtCharDesc;

		[CompilerGenerated]
		[AccessedThroughProperty("Splitter4")]
		private Splitter _Splitter4;

		[CompilerGenerated]
		[AccessedThroughProperty("TabProjectLoc")]
		private TabPage _TabProjectLoc;

		[CompilerGenerated]
		[AccessedThroughProperty("ListProjectLocations")]
		private ListView _ListProjectLocations;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader5")]
		private ColumnHeader _ColumnHeader5;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader9")]
		private ColumnHeader _ColumnHeader9;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader6")]
		private ColumnHeader _ColumnHeader6;

		[CompilerGenerated]
		[AccessedThroughProperty("Splitter5")]
		private Splitter _Splitter5;

		[CompilerGenerated]
		[AccessedThroughProperty("txtLocDesc")]
		private TextBox _txtLocDesc;

		[CompilerGenerated]
		[AccessedThroughProperty("TabProjectItem")]
		private TabPage _TabProjectItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ListProjectItems")]
		private ListView _ListProjectItems;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader7")]
		private ColumnHeader _ColumnHeader7;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader8")]
		private ColumnHeader _ColumnHeader8;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader10")]
		private ColumnHeader _ColumnHeader10;

		[CompilerGenerated]
		[AccessedThroughProperty("Splitter6")]
		private Splitter _Splitter6;

		[CompilerGenerated]
		[AccessedThroughProperty("txtItemDesc")]
		private TextBox _txtItemDesc;

		[CompilerGenerated]
		[AccessedThroughProperty("AddNewCharToolStripMenuItem")]
		private ToolStripMenuItem _AddNewCharToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("AddNewLocToolStripMenuItem")]
		private ToolStripMenuItem _AddNewLocToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("AddNewItemToolStripMenuItem")]
		private ToolStripMenuItem _AddNewItemToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator18")]
		private ToolStripSeparator _ToolStripSeparator18;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmAddNewItem")]
		private ToolStripMenuItem _tsmAddNewItem;

		[CompilerGenerated]
		[AccessedThroughProperty("AddNewToolStripMenuItem")]
		private ToolStripMenuItem _AddNewToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxListProjectChar")]
		private ContextMenuStrip _ctxListProjectChar;

		[CompilerGenerated]
		[AccessedThroughProperty("AddNewCharToProject")]
		private ToolStripMenuItem _AddNewCharToProject;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxListProjectLoc")]
		private ContextMenuStrip _ctxListProjectLoc;

		[CompilerGenerated]
		[AccessedThroughProperty("AddNewLocationToProject")]
		private ToolStripMenuItem _AddNewLocationToProject;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxListProjectItem")]
		private ContextMenuStrip _ctxListProjectItem;

		[CompilerGenerated]
		[AccessedThroughProperty("AddNewItemToProject")]
		private ToolStripMenuItem _AddNewItemToProject;

		[CompilerGenerated]
		[AccessedThroughProperty("CheckForBETAVersionToolStripMenuItem")]
		private ToolStripMenuItem _CheckForBETAVersionToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("TimerFillCharlist")]
		private Timer _TimerFillCharlist;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuSceneGrid")]
		private ToolStripMenuItem _mnuSceneGrid;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator21")]
		private ToolStripSeparator _ToolStripSeparator21;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator19")]
		private ToolStripSeparator _ToolStripSeparator19;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator20")]
		private ToolStripSeparator _ToolStripSeparator20;

		[CompilerGenerated]
		[AccessedThroughProperty("SynopsisToolStripMenuItem")]
		private ToolStripMenuItem _SynopsisToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator23")]
		private ToolStripSeparator _ToolStripSeparator23;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator24")]
		private ToolStripSeparator _ToolStripSeparator24;

		[CompilerGenerated]
		[AccessedThroughProperty("PrintAllNotesToolStripMenuItem")]
		private ToolStripMenuItem _PrintAllNotesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator25")]
		private ToolStripSeparator _ToolStripSeparator25;

		[CompilerGenerated]
		[AccessedThroughProperty("PrintScenesPerItemToolStripMenuItem")]
		private ToolStripMenuItem _PrintScenesPerItemToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("PrintScenesPerLocationToolStripMenuItem")]
		private ToolStripMenuItem _PrintScenesPerLocationToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("PrintScenesPerCharacterToolStripMenuItem")]
		private ToolStripMenuItem _PrintScenesPerCharacterToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("DeleteOrphanScenesToolStripMenuItem")]
		private ToolStripMenuItem _DeleteOrphanScenesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ColumnHeader11")]
		private ColumnHeader _ColumnHeader11;

		[CompilerGenerated]
		[AccessedThroughProperty("TriggerErrorToolStripMenuItem")]
		private ToolStripMenuItem _TriggerErrorToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("OpenSettingsFolderToolStripMenuItem")]
		private ToolStripMenuItem _OpenSettingsFolderToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("SetReportWidthToolStripMenuItem")]
		private ToolStripMenuItem _SetReportWidthToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("AutomaticallyAddItemsToScenesToolStripMenuItem")]
		private ToolStripMenuItem _AutomaticallyAddItemsToScenesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("AutomaticallyAddLocationsToScenesToolStripMenuItem")]
		private ToolStripMenuItem _AutomaticallyAddLocationsToScenesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("AutomaticallyAddCharactersToScenesToolStripMenuItem")]
		private ToolStripMenuItem _AutomaticallyAddCharactersToScenesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToRTFToolStripMenuItem")]
		private ToolStripMenuItem _ToRTFToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToYWriter5FormatToolStripMenuItem")]
		private ToolStripMenuItem _ToYWriter5FormatToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("PrintsScenesPerTagToolStripMenuItem")]
		private ToolStripMenuItem _PrintsScenesPerTagToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("PrintCharactersPerTagToolStripMenuItem")]
		private ToolStripMenuItem _PrintCharactersPerTagToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("PrintLocationsPerTagToolStripMenuItem")]
		private ToolStripMenuItem _PrintLocationsPerTagToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("PrintItemsPerTagToolStripMenuItem")]
		private ToolStripMenuItem _PrintItemsPerTagToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("SetDateToolStripMenuItem")]
		private ToolStripMenuItem _SetDateToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("RestoreAutobackupToolStripMenuItem")]
		private ToolStripMenuItem _RestoreAutobackupToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("RemoveFormattingFromAllScenesToolStripMenuItem")]
		private ToolStripMenuItem _RemoveFormattingFromAllScenesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("PrintSceneListToolStripMenuItem")]
		private ToolStripMenuItem _PrintSceneListToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("OpenProjectFolderToolStripMenuItem")]
		private ToolStripMenuItem _OpenProjectFolderToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmDailyLog")]
		private ToolStripMenuItem _tsmDailyLog;

		[CompilerGenerated]
		[AccessedThroughProperty("NewNoteToolStripMenuItem")]
		private ToolStripMenuItem _NewNoteToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator26")]
		private ToolStripSeparator _ToolStripSeparator26;

		[CompilerGenerated]
		[AccessedThroughProperty("UseF5ToSwapForReplacementToolStripMenuItem")]
		private ToolStripMenuItem _UseF5ToSwapForReplacementToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("YWriterWikiToolStripMenuItem")]
		private ToolStripMenuItem _YWriterWikiToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("SetupBooksAndPartsToolStripMenuItem")]
		private ToolStripMenuItem _SetupBooksAndPartsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator27")]
		private ToolStripSeparator _ToolStripSeparator27;

		[CompilerGenerated]
		[AccessedThroughProperty("cmbBooks")]
		private ComboBox _cmbBooks;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmChapterReportsToolStripMenuItem")]
		private ToolStripMenuItem _tsmChapterReportsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintSelectedChapters")]
		private ToolStripMenuItem _mnuPrintSelectedChapters;

		[CompilerGenerated]
		[AccessedThroughProperty("mnuPrintChapterNotes")]
		private ToolStripMenuItem _mnuPrintChapterNotes;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmSceneReportsToolStripMenuItem")]
		private ToolStripMenuItem _tsmSceneReportsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmCharReportsToolStripMenuItem")]
		private ToolStripMenuItem _tsmCharReportsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmLocReportsToolStripMenuItem")]
		private ToolStripMenuItem _tsmLocReportsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmItemReportsToolStripMenuItem")]
		private ToolStripMenuItem _tsmItemReportsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("RenumberScenesToolStripMenuItem")]
		private ToolStripMenuItem _RenumberScenesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("CombineSelectedScenesToolStripMenuItem")]
		private ToolStripMenuItem _CombineSelectedScenesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ManualGermanHTMLToolStripMenuItem")]
		private ToolStripMenuItem _ManualGermanHTMLToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmExportSingleChapter")]
		private ToolStripMenuItem _tsmExportSingleChapter;

		[CompilerGenerated]
		[AccessedThroughProperty("ExportChapterToolStripMenuItem")]
		private ToolStripMenuItem _ExportChapterToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ImportChapterToolStripMenuItem")]
		private ToolStripMenuItem _ImportChapterToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToEbookToolStripMenuItem")]
		private ToolStripMenuItem _ToEbookToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmCopyChapters")]
		private ToolStripMenuItem _tsmCopyChapters;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmPasteChapters")]
		private ToolStripMenuItem _tsmPasteChapters;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator22")]
		private ToolStripSeparator _ToolStripSeparator22;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator28")]
		private ToolStripSeparator _ToolStripSeparator28;

		[CompilerGenerated]
		[AccessedThroughProperty("DuplicateWordsToolStripMenuItem")]
		private ToolStripMenuItem _DuplicateWordsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbExportToLaTeX")]
		private ToolStripMenuItem _tsbExportToLaTeX;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator29")]
		private ToolStripSeparator _ToolStripSeparator29;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator30")]
		private ToolStripSeparator _ToolStripSeparator30;

		[CompilerGenerated]
		[AccessedThroughProperty("KeyboardShortcutsToolStripMenuItem")]
		private ToolStripMenuItem _KeyboardShortcutsToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSepLinks")]
		private ToolStripSeparator _ToolStripSepLinks;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator32")]
		private ToolStripSeparator _ToolStripSeparator32;

		[CompilerGenerated]
		[AccessedThroughProperty("ProjectNotesToolStripMenuItem")]
		private ToolStripMenuItem _ProjectNotesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("LaTeXHelpToolStripMenuItem")]
		private ToolStripMenuItem _LaTeXHelpToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("EbookHelpToolStripMenuItem")]
		private ToolStripMenuItem _EbookHelpToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("LikeYWriterOnFacebookToolStripMenuItem")]
		private ToolStripMenuItem _LikeYWriterOnFacebookToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxScenesToClipboard")]
		private ToolStripMenuItem _ctxScenesToClipboard;

		[CompilerGenerated]
		[AccessedThroughProperty("ctxPasteScenesFromClipboard")]
		private ToolStripMenuItem _ctxPasteScenesFromClipboard;

		[CompilerGenerated]
		[AccessedThroughProperty("CopyFirstLineToSceneTitleSelectedScenesToolStripMenuItem")]
		private ToolStripMenuItem _CopyFirstLineToSceneTitleSelectedScenesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("SelectedScenesToolStripMenuItem")]
		private ToolStripMenuItem _SelectedScenesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("SelectedChaptersToolStripMenuItem")]
		private ToolStripMenuItem _SelectedChaptersToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("AllScenesToolStripMenuItem")]
		private ToolStripMenuItem _AllScenesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator33")]
		private ToolStripSeparator _ToolStripSeparator33;

		[CompilerGenerated]
		[AccessedThroughProperty("HelpToolStripMenuItem")]
		private ToolStripMenuItem _HelpToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("MarkAsStartOfMainMatterToolStripMenuItem")]
		private ToolStripMenuItem _MarkAsStartOfMainMatterToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("tssProgress")]
		private ToolStripProgressBar _tssProgress;

		[CompilerGenerated]
		[AccessedThroughProperty("SimonHaynesOnTwitterToolStripMenuItem")]
		private ToolStripMenuItem _SimonHaynesOnTwitterToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbCreateScenesAndChaptersFromScene")]
		private ToolStripMenuItem _tsbCreateScenesAndChaptersFromScene;

		[CompilerGenerated]
		[AccessedThroughProperty("ApplyOutlineToolStripMenuItem")]
		private ToolStripMenuItem _ApplyOutlineToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ForceWordcountToolStripMenuItem")]
		private ToolStripMenuItem _ForceWordcountToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("OpenContainingFolderToolStripMenuItem")]
		private ToolStripMenuItem _OpenContainingFolderToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("colFiledate")]
		private ColumnHeader _colFiledate;

		[CompilerGenerated]
		[AccessedThroughProperty("DuplicateThisSceneToolStripMenuItem")]
		private ToolStripMenuItem _DuplicateThisSceneToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator34")]
		private ToolStripSeparator _ToolStripSeparator34;

		[CompilerGenerated]
		[AccessedThroughProperty("tsmExportRTFChapters")]
		private ToolStripMenuItem _tsmExportRTFChapters;

		[CompilerGenerated]
		[AccessedThroughProperty("RegisterToolStripMenuItem")]
		private ToolStripMenuItem _RegisterToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator35")]
		private ToolStripSeparator _ToolStripSeparator35;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator36")]
		private ToolStripSeparator _ToolStripSeparator36;

		[CompilerGenerated]
		[AccessedThroughProperty("GlobalVariablesToolStripMenuItem")]
		private ToolStripMenuItem _GlobalVariablesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ProjectVariablesToolStripMenuItem")]
		private ToolStripMenuItem _ProjectVariablesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator37")]
		private ToolStripSeparator _ToolStripSeparator37;

		[CompilerGenerated]
		[AccessedThroughProperty("ConfigureSMTPServerToolStripMenuItem")]
		private ToolStripMenuItem _ConfigureSMTPServerToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("BackupToEmailToolStripMenuItem")]
		private ToolStripMenuItem _BackupToEmailToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ConfigureRecipientEmailToolStripMenuItem")]
		private ToolStripMenuItem _ConfigureRecipientEmailToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToEbooktoChaptersToolStripMenuItem")]
		private ToolStripMenuItem _ToEbooktoChaptersToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ExternalLinksToolStripMenuItem")]
		private ToolStripMenuItem _ExternalLinksToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator31")]
		private ToolStripSeparator _ToolStripSeparator31;

		[CompilerGenerated]
		[AccessedThroughProperty("EditCustomExportersToolStripMenuItem")]
		private ToolStripMenuItem _EditCustomExportersToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator38")]
		private ToolStripSeparator _ToolStripSeparator38;

		[CompilerGenerated]
		[AccessedThroughProperty("ConfigureAlternativeBackupFolderToolStripMenuItem")]
		private ToolStripMenuItem _ConfigureAlternativeBackupFolderToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("CollaborationToolStripMenuItem")]
		private ToolStripMenuItem _CollaborationToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("RequestCopyOfProjectToolStripMenuItem")]
		private ToolStripMenuItem _RequestCopyOfProjectToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("sepCollab")]
		private ToolStripSeparator _sepCollab;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbCollab")]
		private ToolStripSplitButton _tsbCollab;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbApplyCollabChanges")]
		private ToolStripMenuItem _tsbApplyCollabChanges;

		[CompilerGenerated]
		[AccessedThroughProperty("tsbDeleteCollabChanges")]
		private ToolStripMenuItem _tsbDeleteCollabChanges;

		[CompilerGenerated]
		[AccessedThroughProperty("StartServerToolStripMenuItem")]
		private ToolStripMenuItem _StartServerToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ConnectToServerToolStripMenuItem")]
		private ToolStripMenuItem _ConnectToServerToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator39")]
		private ToolStripSeparator _ToolStripSeparator39;

		[CompilerGenerated]
		[AccessedThroughProperty("StopServerToolStripMenuItem")]
		private ToolStripMenuItem _StopServerToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator40")]
		private ToolStripSeparator _ToolStripSeparator40;

		[CompilerGenerated]
		[AccessedThroughProperty("Version6FilesToolStripMenuItem")]
		private ToolStripMenuItem _Version6FilesToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("SaveAsYw6ProjectToolStripMenuItem")]
		private ToolStripMenuItem _SaveAsYw6ProjectToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ImportWIPToV6")]
		private ToolStripMenuItem _ImportWIPToV6;

		[CompilerGenerated]
		[AccessedThroughProperty("CreateEmptyV6")]
		private ToolStripMenuItem _CreateEmptyV6;

		[CompilerGenerated]
		[AccessedThroughProperty("WhatIsThisMenuForToolStripMenuItem")]
		private ToolStripMenuItem _WhatIsThisMenuForToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("READTHISFIRSTToolStripMenuItem")]
		private ToolStripMenuItem _READTHISFIRSTToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolStripSeparator41")]
		private ToolStripSeparator _ToolStripSeparator41;

		[CompilerGenerated]
		[AccessedThroughProperty("YWriterAndroidComingSoonToolStripMenuItem")]
		private ToolStripMenuItem _YWriterAndroidComingSoonToolStripMenuItem;

		[CompilerGenerated]
		[AccessedThroughProperty("TableLayoutNoteBar")]
		private TableLayoutPanel _TableLayoutNoteBar;

		private const int MAXRECENT = 12;

		private clsXml cXml;

		private clsProject cProject;

		private clsFillList cFill;

		private int TotalWords;

		private clsMain cUploader;

		private bool Quitting;

		public Collection colEditors;

		public Collection colSpareEditors;

		[CompilerGenerated]
		[AccessedThroughProperty("Find")]
		private frmFind _Find;

		[CompilerGenerated]
		[AccessedThroughProperty("ExternalSceneList")]
		private frmSceneList _ExternalSceneList;

		[CompilerGenerated]
		[AccessedThroughProperty("Storyboard")]
		private frmStoryBoard _Storyboard;

		private bool SuppressUpdate;

		private int mvarDisplayedSceneID;

		private int mvarSelectedSceneID;

		private RichTextBox RTBHidden;

		private frmSplash Splash;

		private bool GenEbookAndQuit;

		private bool DraggingScene;

		private bool DraggingChapter;

		private bool DraggingChar;

		private bool DraggingItems;

		private bool DraggingLoc;

		private bool DraggingNote;

		private Rectangle HighlightedChapter;

		private Rectangle HighlightedScene;

		private Rectangle HighlightedNote;

		[CompilerGenerated]
		[AccessedThroughProperty("Updater")]
		private frmUpdater _Updater;

		private const string ProgName = "yWriter6";

		private string RunOnExit;

		private string SearchString;

		private string SearchRegexFound;

		private string ProblemWordReplacement;

		private int SearchChapterIndex;

		private int SearchSceneIndex;

		private int SearchSceneID;

		private int SearchLoc;

		private bool CaseSensitive;

		private bool UseRegex;

		private bool _0024STATIC_0024DisplayProgressive_002420112_0024AlreadyShowing;
		#endregion
		public virtual ToolStripMenuItem mnuFind
		{
			[CompilerGenerated]
			get
			{
				return _mnuFind;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFind_Click;
				ToolStripMenuItem mnuFind = _mnuFind;
				if (mnuFind != null)
				{
					mnuFind.Click -= value2;
				}
				_mnuFind = value;
				mnuFind = _mnuFind;
				if (mnuFind != null)
				{
					mnuFind.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem cmdFindNext
		{
			[CompilerGenerated]
			get
			{
				return _cmdFindNext;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdFindNext_Click;
				ToolStripMenuItem cmdFindNext = _cmdFindNext;
				if (cmdFindNext != null)
				{
					cmdFindNext.Click -= value2;
				}
				_cmdFindNext = value;
				cmdFindNext = _cmdFindNext;
				if (cmdFindNext != null)
				{
					cmdFindNext.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuFindPrev
		{
			[CompilerGenerated]
			get
			{
				return _mnuFindPrev;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFindPrev_Click;
				ToolStripMenuItem mnuFindPrev = _mnuFindPrev;
				if (mnuFindPrev != null)
				{
					mnuFindPrev.Click -= value2;
				}
				_mnuFindPrev = value;
				mnuFindPrev = _mnuFindPrev;
				if (mnuFindPrev != null)
				{
					mnuFindPrev.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("mnubar3")]
		public virtual ToolStripSeparator mnubar3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuGlobalReplace
		{
			[CompilerGenerated]
			get
			{
				return _mnuGlobalReplace;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuGlobalReplace_Click;
				ToolStripMenuItem mnuGlobalReplace = _mnuGlobalReplace;
				if (mnuGlobalReplace != null)
				{
					mnuGlobalReplace.Click -= value2;
				}
				_mnuGlobalReplace = value;
				mnuGlobalReplace = _mnuGlobalReplace;
				if (mnuGlobalReplace != null)
				{
					mnuGlobalReplace.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("pbarxz")]
		public virtual ToolStripSeparator pbarxz
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuFindAs
		{
			[CompilerGenerated]
			get
			{
				return _mnuFindAs;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFindAs_Click;
				ToolStripMenuItem mnuFindAs = _mnuFindAs;
				if (mnuFindAs != null)
				{
					mnuFindAs.Click -= value2;
				}
				_mnuFindAs = value;
				mnuFindAs = _mnuFindAs;
				if (mnuFindAs != null)
				{
					mnuFindAs.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuFindLy
		{
			[CompilerGenerated]
			get
			{
				return _mnuFindLy;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFindLy_Click;
				ToolStripMenuItem mnuFindLy = _mnuFindLy;
				if (mnuFindLy != null)
				{
					mnuFindLy.Click -= value2;
				}
				_mnuFindLy = value;
				mnuFindLy = _mnuFindLy;
				if (mnuFindLy != null)
				{
					mnuFindLy.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuFindIng
		{
			[CompilerGenerated]
			get
			{
				return _mnuFindIng;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFindIng_Click;
				ToolStripMenuItem mnuFindIng = _mnuFindIng;
				if (mnuFindIng != null)
				{
					mnuFindIng.Click -= value2;
				}
				_mnuFindIng = value;
				mnuFindIng = _mnuFindIng;
				if (mnuFindIng != null)
				{
					mnuFindIng.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuFindThen
		{
			[CompilerGenerated]
			get
			{
				return _mnuFindThen;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFindThen_Click;
				ToolStripMenuItem mnuFindThen = _mnuFindThen;
				if (mnuFindThen != null)
				{
					mnuFindThen.Click -= value2;
				}
				_mnuFindThen = value;
				mnuFindThen = _mnuFindThen;
				if (mnuFindThen != null)
				{
					mnuFindThen.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuFindTurned
		{
			[CompilerGenerated]
			get
			{
				return _mnuFindTurned;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFindTurned_Click;
				ToolStripMenuItem mnuFindTurned = _mnuFindTurned;
				if (mnuFindTurned != null)
				{
					mnuFindTurned.Click -= value2;
				}
				_mnuFindTurned = value;
				mnuFindTurned = _mnuFindTurned;
				if (mnuFindTurned != null)
				{
					mnuFindTurned.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuFindGlanced
		{
			[CompilerGenerated]
			get
			{
				return _mnuFindGlanced;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFindGlanced_Click;
				ToolStripMenuItem mnuFindGlanced = _mnuFindGlanced;
				if (mnuFindGlanced != null)
				{
					mnuFindGlanced.Click -= value2;
				}
				_mnuFindGlanced = value;
				mnuFindGlanced = _mnuFindGlanced;
				if (mnuFindGlanced != null)
				{
					mnuFindGlanced.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuFindMuttered
		{
			[CompilerGenerated]
			get
			{
				return _mnuFindMuttered;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFindMuttered_Click;
				ToolStripMenuItem mnuFindMuttered = _mnuFindMuttered;
				if (mnuFindMuttered != null)
				{
					mnuFindMuttered.Click -= value2;
				}
				_mnuFindMuttered = value;
				mnuFindMuttered = _mnuFindMuttered;
				if (mnuFindMuttered != null)
				{
					mnuFindMuttered.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuFindSuddenly
		{
			[CompilerGenerated]
			get
			{
				return _mnuFindSuddenly;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFindSuddenly_Click;
				ToolStripMenuItem mnuFindSuddenly = _mnuFindSuddenly;
				if (mnuFindSuddenly != null)
				{
					mnuFindSuddenly.Click -= value2;
				}
				_mnuFindSuddenly = value;
				mnuFindSuddenly = _mnuFindSuddenly;
				if (mnuFindSuddenly != null)
				{
					mnuFindSuddenly.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuFindLooked
		{
			[CompilerGenerated]
			get
			{
				return _mnuFindLooked;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFindLooked_Click;
				ToolStripMenuItem mnuFindLooked = _mnuFindLooked;
				if (mnuFindLooked != null)
				{
					mnuFindLooked.Click -= value2;
				}
				_mnuFindLooked = value;
				mnuFindLooked = _mnuFindLooked;
				if (mnuFindLooked != null)
				{
					mnuFindLooked.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("mnuPredefined")]
		public virtual ToolStripMenuItem mnuPredefined
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem _mnuUDW_0
		{
			[CompilerGenerated]
			get
			{
				return __mnuUDW_0;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = _mnuUDW_0_Click;
				ToolStripMenuItem _mnuUDW_ = __mnuUDW_0;
				if (_mnuUDW_ != null)
				{
					_mnuUDW_.Click -= value2;
				}
				__mnuUDW_0 = value;
				_mnuUDW_ = __mnuUDW_0;
				if (_mnuUDW_ != null)
				{
					_mnuUDW_.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("mnuUD")]
		public virtual ToolStripMenuItem mnuUD
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem UseF3ToFindNext
		{
			[CompilerGenerated]
			get
			{
				return _UseF3ToFindNext;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = UseF3ToFindNext_Click;
				ToolStripMenuItem useF3ToFindNext = _UseF3ToFindNext;
				if (useF3ToFindNext != null)
				{
					useF3ToFindNext.Click -= value2;
				}
				_UseF3ToFindNext = value;
				useF3ToFindNext = _UseF3ToFindNext;
				if (useF3ToFindNext != null)
				{
					useF3ToFindNext.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuNull
		{
			[CompilerGenerated]
			get
			{
				return _mnuNull;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuNull_Click;
				ToolStripMenuItem mnuNull = _mnuNull;
				if (mnuNull != null)
				{
					mnuNull.Click -= value2;
				}
				_mnuNull = value;
				mnuNull = _mnuNull;
				if (mnuNull != null)
				{
					mnuNull.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuSearch
		{
			[CompilerGenerated]
			get
			{
				return _mnuSearch;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSearch_DropDownOpened;
				ToolStripMenuItem mnuSearch = _mnuSearch;
				if (mnuSearch != null)
				{
					mnuSearch.DropDownOpened -= value2;
				}
				_mnuSearch = value;
				mnuSearch = _mnuSearch;
				if (mnuSearch != null)
				{
					mnuSearch.DropDownOpened += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuChapterNew
		{
			[CompilerGenerated]
			get
			{
				return _mnuChapterNew;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFileNew_Click;
				ToolStripMenuItem mnuChapterNew = _mnuChapterNew;
				if (mnuChapterNew != null)
				{
					mnuChapterNew.Click -= value2;
				}
				_mnuChapterNew = value;
				mnuChapterNew = _mnuChapterNew;
				if (mnuChapterNew != null)
				{
					mnuChapterNew.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuChapterMultiNew
		{
			[CompilerGenerated]
			get
			{
				return _mnuChapterMultiNew;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuCreateChapters_Click;
				ToolStripMenuItem mnuChapterMultiNew = _mnuChapterMultiNew;
				if (mnuChapterMultiNew != null)
				{
					mnuChapterMultiNew.Click -= value2;
				}
				_mnuChapterMultiNew = value;
				mnuChapterMultiNew = _mnuChapterMultiNew;
				if (mnuChapterMultiNew != null)
				{
					mnuChapterMultiNew.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuEditChapter
		{
			[CompilerGenerated]
			get
			{
				return _mnuEditChapter;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuEditChapter_Click;
				ToolStripMenuItem mnuEditChapter = _mnuEditChapter;
				if (mnuEditChapter != null)
				{
					mnuEditChapter.Click -= value2;
				}
				_mnuEditChapter = value;
				mnuEditChapter = _mnuEditChapter;
				if (mnuEditChapter != null)
				{
					mnuEditChapter.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("pbardash")]
		public virtual ToolStripSeparator pbardash
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuMarkEndBeginning
		{
			[CompilerGenerated]
			get
			{
				return _mnuMarkEndBeginning;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuMarkEndBeginning_Click;
				ToolStripMenuItem mnuMarkEndBeginning = _mnuMarkEndBeginning;
				if (mnuMarkEndBeginning != null)
				{
					mnuMarkEndBeginning.Click -= value2;
				}
				_mnuMarkEndBeginning = value;
				mnuMarkEndBeginning = _mnuMarkEndBeginning;
				if (mnuMarkEndBeginning != null)
				{
					mnuMarkEndBeginning.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuMarkEndMiddle
		{
			[CompilerGenerated]
			get
			{
				return _mnuMarkEndMiddle;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuMarkEndMiddle_Click;
				ToolStripMenuItem mnuMarkEndMiddle = _mnuMarkEndMiddle;
				if (mnuMarkEndMiddle != null)
				{
					mnuMarkEndMiddle.Click -= value2;
				}
				_mnuMarkEndMiddle = value;
				mnuMarkEndMiddle = _mnuMarkEndMiddle;
				if (mnuMarkEndMiddle != null)
				{
					mnuMarkEndMiddle.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuRenumber
		{
			[CompilerGenerated]
			get
			{
				return _mnuRenumber;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuRenumber_Click;
				ToolStripMenuItem mnuRenumber = _mnuRenumber;
				if (mnuRenumber != null)
				{
					mnuRenumber.Click -= value2;
				}
				_mnuRenumber = value;
				mnuRenumber = _mnuRenumber;
				if (mnuRenumber != null)
				{
					mnuRenumber.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("mnuChapbar")]
		public virtual ToolStripSeparator mnuChapbar
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuMarkChaptersUnused
		{
			[CompilerGenerated]
			get
			{
				return _mnuMarkChaptersUnused;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuMarkChaptersUnused_Click;
				ToolStripMenuItem mnuMarkChaptersUnused = _mnuMarkChaptersUnused;
				if (mnuMarkChaptersUnused != null)
				{
					mnuMarkChaptersUnused.Click -= value2;
				}
				_mnuMarkChaptersUnused = value;
				mnuMarkChaptersUnused = _mnuMarkChaptersUnused;
				if (mnuMarkChaptersUnused != null)
				{
					mnuMarkChaptersUnused.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuRemoveChapter
		{
			[CompilerGenerated]
			get
			{
				return _mnuRemoveChapter;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuRemoveChapter_Click;
				ToolStripMenuItem mnuRemoveChapter = _mnuRemoveChapter;
				if (mnuRemoveChapter != null)
				{
					mnuRemoveChapter.Click -= value2;
				}
				_mnuRemoveChapter = value;
				mnuRemoveChapter = _mnuRemoveChapter;
				if (mnuRemoveChapter != null)
				{
					mnuRemoveChapter.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuChapters
		{
			[CompilerGenerated]
			get
			{
				return _mnuChapters;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuChapters_DropDownOpening;
				EventHandler value3 = mnuChapters_Click;
				ToolStripMenuItem mnuChapters = _mnuChapters;
				if (mnuChapters != null)
				{
					mnuChapters.DropDownOpening -= value2;
					mnuChapters.Click -= value3;
				}
				_mnuChapters = value;
				mnuChapters = _mnuChapters;
				if (mnuChapters != null)
				{
					mnuChapters.DropDownOpening += value2;
					mnuChapters.Click += value3;
				}
			}
		}

		public virtual ToolStripMenuItem mnuAddScene
		{
			[CompilerGenerated]
			get
			{
				return _mnuAddScene;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuAddScene_Click;
				ToolStripMenuItem mnuAddScene = _mnuAddScene;
				if (mnuAddScene != null)
				{
					mnuAddScene.Click -= value2;
				}
				_mnuAddScene = value;
				mnuAddScene = _mnuAddScene;
				if (mnuAddScene != null)
				{
					mnuAddScene.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuEditScene
		{
			[CompilerGenerated]
			get
			{
				return _mnuEditScene;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuEditScene_Click;
				ToolStripMenuItem mnuEditScene = _mnuEditScene;
				if (mnuEditScene != null)
				{
					mnuEditScene.Click -= value2;
				}
				_mnuEditScene = value;
				mnuEditScene = _mnuEditScene;
				if (mnuEditScene != null)
				{
					mnuEditScene.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuAddMultiScenes
		{
			[CompilerGenerated]
			get
			{
				return _mnuAddMultiScenes;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuAddMultiScenes_Click;
				ToolStripMenuItem mnuAddMultiScenes = _mnuAddMultiScenes;
				if (mnuAddMultiScenes != null)
				{
					mnuAddMultiScenes.Click -= value2;
				}
				_mnuAddMultiScenes = value;
				mnuAddMultiScenes = _mnuAddMultiScenes;
				if (mnuAddMultiScenes != null)
				{
					mnuAddMultiScenes.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("pbarsc1")]
		public virtual ToolStripSeparator pbarsc1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuSetAllSceneFont
		{
			[CompilerGenerated]
			get
			{
				return _mnuSetAllSceneFont;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSetAllSceneFont_Click;
				ToolStripMenuItem mnuSetAllSceneFont = _mnuSetAllSceneFont;
				if (mnuSetAllSceneFont != null)
				{
					mnuSetAllSceneFont.Click -= value2;
				}
				_mnuSetAllSceneFont = value;
				mnuSetAllSceneFont = _mnuSetAllSceneFont;
				if (mnuSetAllSceneFont != null)
				{
					mnuSetAllSceneFont.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuRemoveScene
		{
			[CompilerGenerated]
			get
			{
				return _mnuRemoveScene;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuRemoveScene_Click;
				ToolStripMenuItem mnuRemoveScene = _mnuRemoveScene;
				if (mnuRemoveScene != null)
				{
					mnuRemoveScene.Click -= value2;
				}
				_mnuRemoveScene = value;
				mnuRemoveScene = _mnuRemoveScene;
				if (mnuRemoveScene != null)
				{
					mnuRemoveScene.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuScene
		{
			[CompilerGenerated]
			get
			{
				return _mnuScene;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuScene_DropDownOpening;
				EventHandler value3 = mnuScene_Click;
				ToolStripMenuItem mnuScene = _mnuScene;
				if (mnuScene != null)
				{
					mnuScene.DropDownOpening -= value2;
					mnuScene.Click -= value3;
				}
				_mnuScene = value;
				mnuScene = _mnuScene;
				if (mnuScene != null)
				{
					mnuScene.DropDownOpening += value2;
					mnuScene.Click += value3;
				}
			}
		}

		public virtual ToolStripMenuItem mnuEditChar
		{
			[CompilerGenerated]
			get
			{
				return _mnuEditChar;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuEditChar_Click;
				ToolStripMenuItem mnuEditChar = _mnuEditChar;
				if (mnuEditChar != null)
				{
					mnuEditChar.Click -= value2;
				}
				_mnuEditChar = value;
				mnuEditChar = _mnuEditChar;
				if (mnuEditChar != null)
				{
					mnuEditChar.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuAddCharToScene
		{
			[CompilerGenerated]
			get
			{
				return _mnuAddCharToScene;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuAddCharToScene_Click;
				ToolStripMenuItem mnuAddCharToScene = _mnuAddCharToScene;
				if (mnuAddCharToScene != null)
				{
					mnuAddCharToScene.Click -= value2;
				}
				_mnuAddCharToScene = value;
				mnuAddCharToScene = _mnuAddCharToScene;
				if (mnuAddCharToScene != null)
				{
					mnuAddCharToScene.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuScenesPerCharacter
		{
			[CompilerGenerated]
			get
			{
				return _mnuScenesPerCharacter;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuScenesPerCharacter_Click;
				ToolStripMenuItem mnuScenesPerCharacter = _mnuScenesPerCharacter;
				if (mnuScenesPerCharacter != null)
				{
					mnuScenesPerCharacter.Click -= value2;
				}
				_mnuScenesPerCharacter = value;
				mnuScenesPerCharacter = _mnuScenesPerCharacter;
				if (mnuScenesPerCharacter != null)
				{
					mnuScenesPerCharacter.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuWordsPerCharacter
		{
			[CompilerGenerated]
			get
			{
				return _mnuWordsPerCharacter;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuWordsPerCharacter_Click;
				ToolStripMenuItem mnuWordsPerCharacter = _mnuWordsPerCharacter;
				if (mnuWordsPerCharacter != null)
				{
					mnuWordsPerCharacter.Click -= value2;
				}
				_mnuWordsPerCharacter = value;
				mnuWordsPerCharacter = _mnuWordsPerCharacter;
				if (mnuWordsPerCharacter != null)
				{
					mnuWordsPerCharacter.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuChar
		{
			[CompilerGenerated]
			get
			{
				return _mnuChar;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuChar_Click;
				EventHandler value3 = mnuChar_DropDownOpening;
				ToolStripMenuItem mnuChar = _mnuChar;
				if (mnuChar != null)
				{
					mnuChar.Click -= value2;
					mnuChar.DropDownOpening -= value3;
				}
				_mnuChar = value;
				mnuChar = _mnuChar;
				if (mnuChar != null)
				{
					mnuChar.Click += value2;
					mnuChar.DropDownOpening += value3;
				}
			}
		}

		public virtual ToolStripMenuItem mnuAddLocation
		{
			[CompilerGenerated]
			get
			{
				return _mnuAddLocation;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuAddLocation_Click;
				ToolStripMenuItem mnuAddLocation = _mnuAddLocation;
				if (mnuAddLocation != null)
				{
					mnuAddLocation.Click -= value2;
				}
				_mnuAddLocation = value;
				mnuAddLocation = _mnuAddLocation;
				if (mnuAddLocation != null)
				{
					mnuAddLocation.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuAddLocToCurrentScene
		{
			[CompilerGenerated]
			get
			{
				return _mnuAddLocToCurrentScene;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuAddLocToCurrentScene_Click;
				ToolStripMenuItem mnuAddLocToCurrentScene = _mnuAddLocToCurrentScene;
				if (mnuAddLocToCurrentScene != null)
				{
					mnuAddLocToCurrentScene.Click -= value2;
				}
				_mnuAddLocToCurrentScene = value;
				mnuAddLocToCurrentScene = _mnuAddLocToCurrentScene;
				if (mnuAddLocToCurrentScene != null)
				{
					mnuAddLocToCurrentScene.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuLocations
		{
			[CompilerGenerated]
			get
			{
				return _mnuLocations;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuLocations_Click;
				EventHandler value3 = mnuLocations_DropDownOpening;
				ToolStripMenuItem mnuLocations = _mnuLocations;
				if (mnuLocations != null)
				{
					mnuLocations.Click -= value2;
					mnuLocations.DropDownOpening -= value3;
				}
				_mnuLocations = value;
				mnuLocations = _mnuLocations;
				if (mnuLocations != null)
				{
					mnuLocations.Click += value2;
					mnuLocations.DropDownOpening += value3;
				}
			}
		}

		public virtual ToolStripMenuItem mnuAddItem
		{
			[CompilerGenerated]
			get
			{
				return _mnuAddItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuAddItem_Click;
				ToolStripMenuItem mnuAddItem = _mnuAddItem;
				if (mnuAddItem != null)
				{
					mnuAddItem.Click -= value2;
				}
				_mnuAddItem = value;
				mnuAddItem = _mnuAddItem;
				if (mnuAddItem != null)
				{
					mnuAddItem.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuAddItemToCurrentScene
		{
			[CompilerGenerated]
			get
			{
				return _mnuAddItemToCurrentScene;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuAddItemToCurrentScene_Click;
				ToolStripMenuItem mnuAddItemToCurrentScene = _mnuAddItemToCurrentScene;
				if (mnuAddItemToCurrentScene != null)
				{
					mnuAddItemToCurrentScene.Click -= value2;
				}
				_mnuAddItemToCurrentScene = value;
				mnuAddItemToCurrentScene = _mnuAddItemToCurrentScene;
				if (mnuAddItemToCurrentScene != null)
				{
					mnuAddItemToCurrentScene.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuItems
		{
			[CompilerGenerated]
			get
			{
				return _mnuItems;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuItems_Click;
				EventHandler value3 = mnuItems_DropDownOpening;
				ToolStripMenuItem mnuItems = _mnuItems;
				if (mnuItems != null)
				{
					mnuItems.Click -= value2;
					mnuItems.DropDownOpening -= value3;
				}
				_mnuItems = value;
				mnuItems = _mnuItems;
				if (mnuItems != null)
				{
					mnuItems.Click += value2;
					mnuItems.DropDownOpening += value3;
				}
			}
		}

		public virtual ToolStripMenuItem mnuStoryboard
		{
			[CompilerGenerated]
			get
			{
				return _mnuStoryboard;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuStoryboard_Click;
				ToolStripMenuItem mnuStoryboard = _mnuStoryboard;
				if (mnuStoryboard != null)
				{
					mnuStoryboard.Click -= value2;
				}
				_mnuStoryboard = value;
				mnuStoryboard = _mnuStoryboard;
				if (mnuStoryboard != null)
				{
					mnuStoryboard.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuChart
		{
			[CompilerGenerated]
			get
			{
				return _mnuChart;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuChart_Click;
				ToolStripMenuItem mnuChart = _mnuChart;
				if (mnuChart != null)
				{
					mnuChart.Click -= value2;
				}
				_mnuChart = value;
				mnuChart = _mnuChart;
				if (mnuChart != null)
				{
					mnuChart.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("Pbarnone")]
		public virtual ToolStripSeparator Pbarnone
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuWordTarget
		{
			[CompilerGenerated]
			get
			{
				return _mnuWordTarget;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuWordTarget_Click;
				ToolStripMenuItem mnuWordTarget = _mnuWordTarget;
				if (mnuWordTarget != null)
				{
					mnuWordTarget.Click -= value2;
				}
				_mnuWordTarget = value;
				mnuWordTarget = _mnuWordTarget;
				if (mnuWordTarget != null)
				{
					mnuWordTarget.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("sep1")]
		public virtual ToolStripSeparator sep1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuBackupProject
		{
			[CompilerGenerated]
			get
			{
				return _mnuBackupProject;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuBackupProject_Click;
				ToolStripMenuItem mnuBackupProject = _mnuBackupProject;
				if (mnuBackupProject != null)
				{
					mnuBackupProject.Click -= value2;
				}
				_mnuBackupProject = value;
				mnuBackupProject = _mnuBackupProject;
				if (mnuBackupProject != null)
				{
					mnuBackupProject.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuSetupAutobackup
		{
			[CompilerGenerated]
			get
			{
				return _mnuSetupAutobackup;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSetupAutobackup_Click;
				ToolStripMenuItem mnuSetupAutobackup = _mnuSetupAutobackup;
				if (mnuSetupAutobackup != null)
				{
					mnuSetupAutobackup.Click -= value2;
				}
				_mnuSetupAutobackup = value;
				mnuSetupAutobackup = _mnuSetupAutobackup;
				if (mnuSetupAutobackup != null)
				{
					mnuSetupAutobackup.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuAutobackups
		{
			[CompilerGenerated]
			get
			{
				return _mnuAutobackups;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuAutobackups_Click;
				ToolStripMenuItem mnuAutobackups = _mnuAutobackups;
				if (mnuAutobackups != null)
				{
					mnuAutobackups.Click -= value2;
				}
				_mnuAutobackups = value;
				mnuAutobackups = _mnuAutobackups;
				if (mnuAutobackups != null)
				{
					mnuAutobackups.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuBackupMenu
		{
			[CompilerGenerated]
			get
			{
				return _mnuBackupMenu;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuBackupMenu_DropDownOpening;
				ToolStripMenuItem mnuBackupMenu = _mnuBackupMenu;
				if (mnuBackupMenu != null)
				{
					mnuBackupMenu.DropDownOpening -= value2;
				}
				_mnuBackupMenu = value;
				mnuBackupMenu = _mnuBackupMenu;
				if (mnuBackupMenu != null)
				{
					mnuBackupMenu.DropDownOpening += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuCreateDebug
		{
			[CompilerGenerated]
			get
			{
				return _mnuCreateDebug;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuCreateDebug_Click;
				ToolStripMenuItem mnuCreateDebug = _mnuCreateDebug;
				if (mnuCreateDebug != null)
				{
					mnuCreateDebug.Click -= value2;
				}
				_mnuCreateDebug = value;
				mnuCreateDebug = _mnuCreateDebug;
				if (mnuCreateDebug != null)
				{
					mnuCreateDebug.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuViewLog
		{
			[CompilerGenerated]
			get
			{
				return _mnuViewLog;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuViewLog_Click;
				ToolStripMenuItem mnuViewLog = _mnuViewLog;
				if (mnuViewLog != null)
				{
					mnuViewLog.Click -= value2;
				}
				_mnuViewLog = value;
				mnuViewLog = _mnuViewLog;
				if (mnuViewLog != null)
				{
					mnuViewLog.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("mnuDebugMenu")]
		public virtual ToolStripMenuItem mnuDebugMenu
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuUIFont
		{
			[CompilerGenerated]
			get
			{
				return _mnuUIFont;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuUIFont_Click;
				ToolStripMenuItem mnuUIFont = _mnuUIFont;
				if (mnuUIFont != null)
				{
					mnuUIFont.Click -= value2;
				}
				_mnuUIFont = value;
				mnuUIFont = _mnuUIFont;
				if (mnuUIFont != null)
				{
					mnuUIFont.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuWordUsageCount
		{
			[CompilerGenerated]
			get
			{
				return _mnuWordUsageCount;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuWordUsageCount_Click;
				ToolStripMenuItem mnuWordUsageCount = _mnuWordUsageCount;
				if (mnuWordUsageCount != null)
				{
					mnuWordUsageCount.Click -= value2;
				}
				_mnuWordUsageCount = value;
				mnuWordUsageCount = _mnuWordUsageCount;
				if (mnuWordUsageCount != null)
				{
					mnuWordUsageCount.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuTools
		{
			[CompilerGenerated]
			get
			{
				return _mnuTools;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuTools_Click;
				EventHandler value3 = mnuTools_DropDownOpening;
				ToolStripMenuItem mnuTools = _mnuTools;
				if (mnuTools != null)
				{
					mnuTools.Click -= value2;
					mnuTools.DropDownOpening -= value3;
				}
				_mnuTools = value;
				mnuTools = _mnuTools;
				if (mnuTools != null)
				{
					mnuTools.Click += value2;
					mnuTools.DropDownOpening += value3;
				}
			}
		}

		public virtual ToolStripMenuItem mnuLocalise
		{
			[CompilerGenerated]
			get
			{
				return _mnuLocalise;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuLocalise_Click;
				ToolStripMenuItem mnuLocalise = _mnuLocalise;
				if (mnuLocalise != null)
				{
					mnuLocalise.Click -= value2;
				}
				_mnuLocalise = value;
				mnuLocalise = _mnuLocalise;
				if (mnuLocalise != null)
				{
					mnuLocalise.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuAbout
		{
			[CompilerGenerated]
			get
			{
				return _mnuAbout;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuAbout_Click;
				ToolStripMenuItem mnuAbout = _mnuAbout;
				if (mnuAbout != null)
				{
					mnuAbout.Click -= value2;
				}
				_mnuAbout = value;
				mnuAbout = _mnuAbout;
				if (mnuAbout != null)
				{
					mnuAbout.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuManual
		{
			[CompilerGenerated]
			get
			{
				return _mnuManual;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuManual_Click;
				ToolStripMenuItem mnuManual = _mnuManual;
				if (mnuManual != null)
				{
					mnuManual.Click -= value2;
				}
				_mnuManual = value;
				mnuManual = _mnuManual;
				if (mnuManual != null)
				{
					mnuManual.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("pbarhelp")]
		public virtual ToolStripSeparator pbarhelp
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuYWWebPage
		{
			[CompilerGenerated]
			get
			{
				return _mnuYWWebPage;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuYWWebPage_Click;
				ToolStripMenuItem mnuYWWebPage = _mnuYWWebPage;
				if (mnuYWWebPage != null)
				{
					mnuYWWebPage.Click -= value2;
				}
				_mnuYWWebPage = value;
				mnuYWWebPage = _mnuYWWebPage;
				if (mnuYWWebPage != null)
				{
					mnuYWWebPage.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuGoogleGroup
		{
			[CompilerGenerated]
			get
			{
				return _mnuGoogleGroup;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuGoogleGroup_Click;
				ToolStripMenuItem mnuGoogleGroup = _mnuGoogleGroup;
				if (mnuGoogleGroup != null)
				{
					mnuGoogleGroup.Click -= value2;
				}
				_mnuGoogleGroup = value;
				mnuGoogleGroup = _mnuGoogleGroup;
				if (mnuGoogleGroup != null)
				{
					mnuGoogleGroup.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuWritingArticles
		{
			[CompilerGenerated]
			get
			{
				return _mnuWritingArticles;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuWritingArticles_Click;
				ToolStripMenuItem mnuWritingArticles = _mnuWritingArticles;
				if (mnuWritingArticles != null)
				{
					mnuWritingArticles.Click -= value2;
				}
				_mnuWritingArticles = value;
				mnuWritingArticles = _mnuWritingArticles;
				if (mnuWritingArticles != null)
				{
					mnuWritingArticles.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("toolsbar")]
		public virtual ToolStripSeparator toolsbar
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ToolStripMenuItem mnuCheckVersion
		{
			[CompilerGenerated]
			get
			{
				return _mnuCheckVersion;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuCheckVersion_Click;
				ToolStripMenuItem mnuCheckVersion = _mnuCheckVersion;
				if (mnuCheckVersion != null)
				{
					mnuCheckVersion.Click -= value2;
				}
				_mnuCheckVersion = value;
				mnuCheckVersion = _mnuCheckVersion;
				if (mnuCheckVersion != null)
				{
					mnuCheckVersion.Click += value2;
				}
			}
		}

		public virtual ToolStripMenuItem mnuHelp
		{
			[CompilerGenerated]
			get
			{
				return _mnuHelp;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuHelp_Click;
				ToolStripMenuItem mnuHelp = _mnuHelp;
				if (mnuHelp != null)
				{
					mnuHelp.Click -= value2;
				}
				_mnuHelp = value;
				mnuHelp = _mnuHelp;
				if (mnuHelp != null)
				{
					mnuHelp.Click += value2;
				}
			}
		}

		public virtual MenuStrip MainMenu1
		{
			[CompilerGenerated]
			get
			{
				return _MainMenu1;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				ToolStripItemClickedEventHandler value2 = MainMenu1_ItemClicked;
				MenuStrip mainMenu = _MainMenu1;
				if (mainMenu != null)
				{
					mainMenu.ItemClicked -= value2;
				}
				_MainMenu1 = value;
				mainMenu = _MainMenu1;
				if (mainMenu != null)
				{
					mainMenu.ItemClicked += value2;
				}
			}
		}

		public virtual Button cmdDiscardProjectNote
		{
			[CompilerGenerated]
			get
			{
				return _cmdDiscardProjectNote;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdDiscard_Click;
				Button cmdDiscardProjectNote = _cmdDiscardProjectNote;
				if (cmdDiscardProjectNote != null)
				{
					cmdDiscardProjectNote.Click -= value2;
				}
				_cmdDiscardProjectNote = value;
				cmdDiscardProjectNote = _cmdDiscardProjectNote;
				if (cmdDiscardProjectNote != null)
				{
					cmdDiscardProjectNote.Click += value2;
				}
			}
		}

		public virtual Button cmdEditProjectNote
		{
			[CompilerGenerated]
			get
			{
				return _cmdEditProjectNote;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdEdit_Click;
				Button cmdEditProjectNote = _cmdEditProjectNote;
				if (cmdEditProjectNote != null)
				{
					cmdEditProjectNote.Click -= value2;
				}
				_cmdEditProjectNote = value;
				cmdEditProjectNote = _cmdEditProjectNote;
				if (cmdEditProjectNote != null)
				{
					cmdEditProjectNote.Click += value2;
				}
			}
		}

		public virtual Button cmdSaveProjectNote
		{
			[CompilerGenerated]
			get
			{
				return _cmdSaveProjectNote;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdSave_Click;
				Button cmdSaveProjectNote = _cmdSaveProjectNote;
				if (cmdSaveProjectNote != null)
				{
					cmdSaveProjectNote.Click -= value2;
				}
				_cmdSaveProjectNote = value;
				cmdSaveProjectNote = _cmdSaveProjectNote;
				if (cmdSaveProjectNote != null)
				{
					cmdSaveProjectNote.Click += value2;
				}
			}
		}

		public virtual Button cmdNewProjectNote
		{
			[CompilerGenerated]
			get
			{
				return _cmdNewProjectNote;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdNew_Click;
				Button cmdNewProjectNote = _cmdNewProjectNote;
				if (cmdNewProjectNote != null)
				{
					cmdNewProjectNote.Click -= value2;
				}
				_cmdNewProjectNote = value;
				cmdNewProjectNote = _cmdNewProjectNote;
				if (cmdNewProjectNote != null)
				{
					cmdNewProjectNote.Click += value2;
				}
			}
		}

		public virtual TextBox txtNoteTitle
		{
			[CompilerGenerated]
			get
			{
				return _txtNoteTitle;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = txtNoteTitle_TextChanged;
				TextBox txtNoteTitle = _txtNoteTitle;
				if (txtNoteTitle != null)
				{
					txtNoteTitle.TextChanged -= value2;
				}
				_txtNoteTitle = value;
				txtNoteTitle = _txtNoteTitle;
				if (txtNoteTitle != null)
				{
					txtNoteTitle.TextChanged += value2;
				}
			}
		}

		public virtual RichTextBox txtNoteEditor
		{
			[CompilerGenerated]
			get
			{
				return _txtNoteEditor;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				LinkClickedEventHandler value2 = txtNoteEditor_LinkClicked;
				EventHandler value3 = txtNoteEditor_TextChanged;
				RichTextBox txtNoteEditor = _txtNoteEditor;
				if (txtNoteEditor != null)
				{
					txtNoteEditor.LinkClicked -= value2;
					txtNoteEditor.TextChanged -= value3;
				}
				_txtNoteEditor = value;
				txtNoteEditor = _txtNoteEditor;
				if (txtNoteEditor != null)
				{
					txtNoteEditor.LinkClicked += value2;
					txtNoteEditor.TextChanged += value3;
				}
			}
		}

		[field: AccessedThroughProperty("_ListNotes_ColumnHeader_1")]
		public virtual ColumnHeader _ListNotes_ColumnHeader_1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ListView ListNotes
		{
			[CompilerGenerated]
			get
			{
				return _ListNotes;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				LabelEditEventHandler value2 = ListNotes_AfterLabelEdit;
				DragEventHandler value3 = ListNotes_DragDrop;
				EventHandler value4 = ListNotes_DragLeave;
				DragEventHandler value5 = ListNotes_DragOver;
				ItemDragEventHandler value6 = ListNotes_ItemDrag;
				KeyEventHandler value7 = ListNotes_KeyDown;
				EventHandler value8 = ListNotes_SelectedIndexChanged;
				ListView listNotes = _ListNotes;
				if (listNotes != null)
				{
					listNotes.AfterLabelEdit -= value2;
					listNotes.DragDrop -= value3;
					listNotes.DragLeave -= value4;
					listNotes.DragOver -= value5;
					listNotes.ItemDrag -= value6;
					listNotes.KeyDown -= value7;
					listNotes.SelectedIndexChanged -= value8;
				}
				_ListNotes = value;
				listNotes = _ListNotes;
				if (listNotes != null)
				{
					listNotes.AfterLabelEdit += value2;
					listNotes.DragDrop += value3;
					listNotes.DragLeave += value4;
					listNotes.DragOver += value5;
					listNotes.ItemDrag += value6;
					listNotes.KeyDown += value7;
					listNotes.SelectedIndexChanged += value8;
				}
			}
		}

		public virtual RichTextBox txtChapterDesc
		{
			[CompilerGenerated]
			get
			{
				return _txtChapterDesc;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = txtChapterDesc_DoubleClick;
				EventHandler value3 = txtChapterDesc_TextChanged;
				RichTextBox txtChapterDesc = _txtChapterDesc;
				if (txtChapterDesc != null)
				{
					txtChapterDesc.DoubleClick -= value2;
					txtChapterDesc.TextChanged -= value3;
				}
				_txtChapterDesc = value;
				txtChapterDesc = _txtChapterDesc;
				if (txtChapterDesc != null)
				{
					txtChapterDesc.DoubleClick += value2;
					txtChapterDesc.TextChanged += value3;
				}
			}
		}

		public virtual RichTextBox txtDesc
		{
			[CompilerGenerated]
			get
			{
				return _txtDesc;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = txtDesc_DoubleClick;
				LinkClickedEventHandler value3 = txtDesc_LinkClicked;
				EventHandler value4 = txtDesc_LostFocus;
				EventHandler value5 = txtDesc_TextChanged;
				RichTextBox txtDesc = _txtDesc;
				if (txtDesc != null)
				{
					txtDesc.DoubleClick -= value2;
					txtDesc.LinkClicked -= value3;
					txtDesc.LostFocus -= value4;
					txtDesc.TextChanged -= value5;
				}
				_txtDesc = value;
				txtDesc = _txtDesc;
				if (txtDesc != null)
				{
					txtDesc.DoubleClick += value2;
					txtDesc.LinkClicked += value3;
					txtDesc.LostFocus += value4;
					txtDesc.TextChanged += value5;
				}
			}
		}

		public virtual RichTextBox txtBody
		{
			[CompilerGenerated]
			get
			{
				return _txtBody;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = txtBody_DoubleClick;
				EventHandler value3 = txtBody_TextChanged;
				RichTextBox txtBody = _txtBody;
				if (txtBody != null)
				{
					txtBody.DoubleClick -= value2;
					txtBody.TextChanged -= value3;
				}
				_txtBody = value;
				txtBody = _txtBody;
				if (txtBody != null)
				{
					txtBody.DoubleClick += value2;
					txtBody.TextChanged += value3;
				}
			}
		}

		[field: AccessedThroughProperty("ListChar0Col1")]
		public virtual ColumnHeader ListChar0Col1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ListChar0Col2")]
		public virtual ColumnHeader ListChar0Col2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ListView ListCharUsed
		{
			[CompilerGenerated]
			get
			{
				return _ListCharUsed;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				DragEventHandler value2 = ListCharUsed_DragDrop;
				DragEventHandler value3 = ListCharUsed_DragOver;
				EventHandler value4 = ListChar_DoubleClick;
				ItemDragEventHandler value5 = ListCharUsed_ItemDrag;
				EventHandler value6 = ListCharUsed_SelectedIndexChanged;
				ListView listCharUsed = _ListCharUsed;
				if (listCharUsed != null)
				{
					listCharUsed.DragDrop -= value2;
					listCharUsed.DragOver -= value3;
					listCharUsed.DoubleClick -= value4;
					listCharUsed.ItemDrag -= value5;
					listCharUsed.SelectedIndexChanged -= value6;
				}
				_ListCharUsed = value;
				listCharUsed = _ListCharUsed;
				if (listCharUsed != null)
				{
					listCharUsed.DragDrop += value2;
					listCharUsed.DragOver += value3;
					listCharUsed.DoubleClick += value4;
					listCharUsed.ItemDrag += value5;
					listCharUsed.SelectedIndexChanged += value6;
				}
			}
		}

		[field: AccessedThroughProperty("ListCharCol1")]
		public virtual ColumnHeader ListCharCol1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ListCharCol2")]
		public virtual ColumnHeader ListCharCol2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ListView ListCharAll
		{
			[CompilerGenerated]
			get
			{
				return _ListCharAll;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ListChar_DoubleClick;
				DragEventHandler value3 = ListCharAll_DragDrop;
				DragEventHandler value4 = ListCharAll_DragOver;
				ItemDragEventHandler value5 = ListCharAll_ItemDrag;
				EventHandler value6 = ListCharAll_SelectedIndexChanged;
				ListView listCharAll = _ListCharAll;
				if (listCharAll != null)
				{
					listCharAll.DoubleClick -= value2;
					listCharAll.DragDrop -= value3;
					listCharAll.DragOver -= value4;
					listCharAll.ItemDrag -= value5;
					listCharAll.SelectedIndexChanged -= value6;
				}
				_ListCharAll = value;
				listCharAll = _ListCharAll;
				if (listCharAll != null)
				{
					listCharAll.DoubleClick += value2;
					listCharAll.DragDrop += value3;
					listCharAll.DragOver += value4;
					listCharAll.ItemDrag += value5;
					listCharAll.SelectedIndexChanged += value6;
				}
			}
		}

		public virtual TextBox txtConflict
		{
			[CompilerGenerated]
			get
			{
				return _txtConflict;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = txtConflict_LostFocus;
				TextBox txtConflict = _txtConflict;
				if (txtConflict != null)
				{
					txtConflict.LostFocus -= value2;
				}
				_txtConflict = value;
				txtConflict = _txtConflict;
				if (txtConflict != null)
				{
					txtConflict.LostFocus += value2;
				}
			}
		}

		public virtual TextBox txtOutcome
		{
			[CompilerGenerated]
			get
			{
				return _txtOutcome;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = txtOutcome_LostFocus;
				TextBox txtOutcome = _txtOutcome;
				if (txtOutcome != null)
				{
					txtOutcome.LostFocus -= value2;
				}
				_txtOutcome = value;
				txtOutcome = _txtOutcome;
				if (txtOutcome != null)
				{
					txtOutcome.LostFocus += value2;
				}
			}
		}

		public virtual TextBox txtGoal
		{
			[CompilerGenerated]
			get
			{
				return _txtGoal;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = txtGoal_LostFocus;
				TextBox txtGoal = _txtGoal;
				if (txtGoal != null)
				{
					txtGoal.LostFocus -= value2;
				}
				_txtGoal = value;
				txtGoal = _txtGoal;
				if (txtGoal != null)
				{
					txtGoal.LostFocus += value2;
				}
			}
		}

		[field: AccessedThroughProperty("lblGoal")]
		public virtual Label lblGoal
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("lblConflict")]
		public virtual Label lblConflict
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("lblOutcome")]
		public virtual Label lblOutcome
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual RichTextBox txtSceneNotes
		{
			[CompilerGenerated]
			get
			{
				return _txtSceneNotes;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				LinkClickedEventHandler value2 = txtSceneNotes_LinkClicked;
				EventHandler value3 = txtSceneNotes_LostFocus;
				EventHandler value4 = txtSceneNotes_TextChanged;
				RichTextBox txtSceneNotes = _txtSceneNotes;
				if (txtSceneNotes != null)
				{
					txtSceneNotes.LinkClicked -= value2;
					txtSceneNotes.LostFocus -= value3;
					txtSceneNotes.TextChanged -= value4;
				}
				_txtSceneNotes = value;
				txtSceneNotes = _txtSceneNotes;
				if (txtSceneNotes != null)
				{
					txtSceneNotes.LinkClicked += value2;
					txtSceneNotes.LostFocus += value3;
					txtSceneNotes.TextChanged += value4;
				}
			}
		}

		public virtual TextBox txtSceneTitle
		{
			[CompilerGenerated]
			get
			{
				return _txtSceneTitle;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = txtSceneTitle_LostFocus;
				EventHandler value3 = txtSceneTitle_TextChanged;
				TextBox txtSceneTitle = _txtSceneTitle;
				if (txtSceneTitle != null)
				{
					txtSceneTitle.LostFocus -= value2;
					txtSceneTitle.TextChanged -= value3;
				}
				_txtSceneTitle = value;
				txtSceneTitle = _txtSceneTitle;
				if (txtSceneTitle != null)
				{
					txtSceneTitle.LostFocus += value2;
					txtSceneTitle.TextChanged += value3;
				}
			}
		}

		[field: AccessedThroughProperty("__ListLoc_0_ColumnHeader_1")]
		public virtual ColumnHeader __ListLoc_0_ColumnHeader_1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ListView ListLocUsed
		{
			[CompilerGenerated]
			get
			{
				return _ListLocUsed;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ListLoc_DoubleClick;
				DragEventHandler value3 = ListLocUsed_DragDrop;
				DragEventHandler value4 = ListLocUsed_DragOver;
				ItemDragEventHandler value5 = ListLocUsed_ItemDrag;
				EventHandler value6 = ListLocUsed_SelectedIndexChanged;
				ListView listLocUsed = _ListLocUsed;
				if (listLocUsed != null)
				{
					listLocUsed.DoubleClick -= value2;
					listLocUsed.DragDrop -= value3;
					listLocUsed.DragOver -= value4;
					listLocUsed.ItemDrag -= value5;
					listLocUsed.SelectedIndexChanged -= value6;
				}
				_ListLocUsed = value;
				listLocUsed = _ListLocUsed;
				if (listLocUsed != null)
				{
					listLocUsed.DoubleClick += value2;
					listLocUsed.DragDrop += value3;
					listLocUsed.DragOver += value4;
					listLocUsed.ItemDrag += value5;
					listLocUsed.SelectedIndexChanged += value6;
				}
			}
		}

		[field: AccessedThroughProperty("__ListLoc_1_ColumnHeader_1")]
		public virtual ColumnHeader __ListLoc_1_ColumnHeader_1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ListView ListLocAll
		{
			[CompilerGenerated]
			get
			{
				return _ListLocAll;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ListLoc_DoubleClick;
				DragEventHandler value3 = ListLocAll_DragDrop;
				DragEventHandler value4 = ListLocAll_DragOver;
				ItemDragEventHandler value5 = ListLocAll_ItemDrag;
				ListView listLocAll = _ListLocAll;
				if (listLocAll != null)
				{
					listLocAll.DoubleClick -= value2;
					listLocAll.DragDrop -= value3;
					listLocAll.DragOver -= value4;
					listLocAll.ItemDrag -= value5;
				}
				_ListLocAll = value;
				listLocAll = _ListLocAll;
				if (listLocAll != null)
				{
					listLocAll.DoubleClick += value2;
					listLocAll.DragDrop += value3;
					listLocAll.DragOver += value4;
					listLocAll.ItemDrag += value5;
				}
			}
		}

		[field: AccessedThroughProperty("__ListItems_0_ColumnHeader_1")]
		public virtual ColumnHeader __ListItems_0_ColumnHeader_1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ListView ListItemsUsed
		{
			[CompilerGenerated]
			get
			{
				return _ListItemsUsed;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ListItems_DoubleClick;
				DragEventHandler value3 = ListItemsUsed_DragDrop;
				DragEventHandler value4 = ListItemsUsed_DragOver;
				ItemDragEventHandler value5 = ListItemsUsed_ItemDrag;
				ListView listItemsUsed = _ListItemsUsed;
				if (listItemsUsed != null)
				{
					listItemsUsed.DoubleClick -= value2;
					listItemsUsed.DragDrop -= value3;
					listItemsUsed.DragOver -= value4;
					listItemsUsed.ItemDrag -= value5;
				}
				_ListItemsUsed = value;
				listItemsUsed = _ListItemsUsed;
				if (listItemsUsed != null)
				{
					listItemsUsed.DoubleClick += value2;
					listItemsUsed.DragDrop += value3;
					listItemsUsed.DragOver += value4;
					listItemsUsed.ItemDrag += value5;
				}
			}
		}

		[field: AccessedThroughProperty("__ListItems_1_ColumnHeader_1")]
		public virtual ColumnHeader __ListItems_1_ColumnHeader_1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ListView ListItemsAll
		{
			[CompilerGenerated]
			get
			{
				return _ListItemsAll;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ListItems_DoubleClick;
				DragEventHandler value3 = ListItemsAll_DragDrop;
				DragEventHandler value4 = ListItemsAll_DragOver;
				ItemDragEventHandler value5 = ListItemsAll_ItemDrag;
				ListView listItemsAll = _ListItemsAll;
				if (listItemsAll != null)
				{
					listItemsAll.DoubleClick -= value2;
					listItemsAll.DragDrop -= value3;
					listItemsAll.DragOver -= value4;
					listItemsAll.ItemDrag -= value5;
				}
				_ListItemsAll = value;
				listItemsAll = _ListItemsAll;
				if (listItemsAll != null)
				{
					listItemsAll.DoubleClick += value2;
					listItemsAll.DragDrop += value3;
					listItemsAll.DragOver += value4;
					listItemsAll.ItemDrag += value5;
				}
			}
		}

		[field: AccessedThroughProperty("colVP")]
		public virtual ColumnHeader colVP
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("colWords")]
		public virtual ColumnHeader colWords
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("colScene")]
		public virtual ColumnHeader colScene
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("colStatus")]
		public virtual ColumnHeader colStatus
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("colAR")]
		public virtual ColumnHeader colAR
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("colFilename")]
		public virtual ColumnHeader colFilename
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("colLetters")]
		public virtual ColumnHeader colLetters
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual ListView ListScenes
		{
			[CompilerGenerated]
			get
			{
				return _ListScenes;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				DragEventHandler value2 = ListScenes_DragDrop;
				MouseEventHandler value3 = ListScenes_MouseDown;
				EventHandler value4 = ListScenes_Click;
				EventHandler value5 = ListScenes_DoubleClick;
				KeyEventHandler value6 = ListScenes_KeyDown;
				KeyEventHandler value7 = ListScenes_KeyUp;
				ItemDragEventHandler value8 = ListScenes_ItemDrag;
				DragEventHandler value9 = ListScenes_DragOver;
				EventHandler value10 = ListScenes_DragLeave;
				EventHandler value11 = ListScenes_SelectedIndexChanged;
				MouseEventHandler value12 = ListScenes_MouseUp;
				MouseEventHandler value13 = ListScenes_MouseClick;
				ListView listScenes = _ListScenes;
				if (listScenes != null)
				{
					listScenes.DragDrop -= value2;
					listScenes.MouseDown -= value3;
					listScenes.Click -= value4;
					listScenes.DoubleClick -= value5;
					listScenes.KeyDown -= value6;
					listScenes.KeyUp -= value7;
					listScenes.ItemDrag -= value8;
					listScenes.DragOver -= value9;
					listScenes.DragLeave -= value10;
					listScenes.SelectedIndexChanged -= value11;
					listScenes.MouseUp -= value12;
					listScenes.MouseClick -= value13;
				}
				_ListScenes = value;
				listScenes = _ListScenes;
				if (listScenes != null)
				{
					listScenes.DragDrop += value2;
					listScenes.MouseDown += value3;
					listScenes.Click += value4;
					listScenes.DoubleClick += value5;
					listScenes.KeyDown += value6;
					listScenes.KeyUp += value7;
					listScenes.ItemDrag += value8;
					listScenes.DragOver += value9;
					listScenes.DragLeave += value10;
					listScenes.SelectedIndexChanged += value11;
					listScenes.MouseUp += value12;
					listScenes.MouseClick += value13;
				}
			}
		}

		public virtual Timer TimerUpdate
		{
			[CompilerGenerated]
			get
			{
				return _TimerUpdate;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = TimerUpdate_Tick;
				Timer timerUpdate = _TimerUpdate;
				if (timerUpdate != null)
				{
					timerUpdate.Tick -= value2;
				}
				_TimerUpdate = value;
				timerUpdate = _TimerUpdate;
				if (timerUpdate != null)
				{
					timerUpdate.Tick += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ImageList2")]
		public virtual ImageList ImageList2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual TabControl TabControlScene
		{
			[CompilerGenerated]
			get
			{
				return _TabControlScene;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = TabControlScene_SelectedIndexChanged;
				TabControl tabControlScene = _TabControlScene;
				if (tabControlScene != null)
				{
					tabControlScene.SelectedIndexChanged -= value2;
				}
				_TabControlScene = value;
				tabControlScene = _TabControlScene;
				if (tabControlScene != null)
				{
					tabControlScene.SelectedIndexChanged += value2;
				}
			}
		}

		[field: AccessedThroughProperty("tabSceneDescription")]
		internal virtual TabPage tabSceneDescription
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("tabSceneContent")]
		internal virtual TabPage tabSceneContent
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("tabSceneCharacters")]
		internal virtual TabPage tabSceneCharacters
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("tabSceneLocations")]
		internal virtual TabPage tabSceneLocations
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("tabSceneItems")]
		internal virtual TabPage tabSceneItems
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual TabPage tabSceneGoals
		{
			[CompilerGenerated]
			get
			{
				return _tabSceneGoals;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tabSceneGoals_Click;
				TabPage tabSceneGoals = _tabSceneGoals;
				if (tabSceneGoals != null)
				{
					tabSceneGoals.Click -= value2;
				}
				_tabSceneGoals = value;
				tabSceneGoals = _tabSceneGoals;
				if (tabSceneGoals != null)
				{
					tabSceneGoals.Click += value2;
				}
			}
		}

		internal virtual TabPage tabSceneNotes
		{
			[CompilerGenerated]
			get
			{
				return _tabSceneNotes;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tabSceneNotes_Click;
				TabPage tabSceneNotes = _tabSceneNotes;
				if (tabSceneNotes != null)
				{
					tabSceneNotes.Click -= value2;
				}
				_tabSceneNotes = value;
				tabSceneNotes = _tabSceneNotes;
				if (tabSceneNotes != null)
				{
					tabSceneNotes.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("TableLayoutPanel2")]
		internal virtual TableLayoutPanel TableLayoutPanel2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TableLayoutPanel1")]
		internal virtual TableLayoutPanel TableLayoutPanel1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TableLayoutGoals")]
		internal virtual TableLayoutPanel TableLayoutGoals
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual TabControl TabControlMain
		{
			[CompilerGenerated]
			get
			{
				return _TabControlMain;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = TabControlMain_SelectedIndexChanged;
				EventHandler value3 = TabControlMain_TabIndexChanged;
				TabControl tabControlMain = _TabControlMain;
				if (tabControlMain != null)
				{
					tabControlMain.SelectedIndexChanged -= value2;
					tabControlMain.SelectedIndexChanged -= value3;
				}
				_TabControlMain = value;
				tabControlMain = _TabControlMain;
				if (tabControlMain != null)
				{
					tabControlMain.SelectedIndexChanged += value2;
					tabControlMain.SelectedIndexChanged += value3;
				}
			}
		}

		[field: AccessedThroughProperty("TabChapterScenes")]
		internal virtual TabPage TabChapterScenes
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("tabProjectNotes")]
		internal virtual TabPage tabProjectNotes
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Panel1")]
		internal virtual Panel Panel1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ListView ListChapters
		{
			[CompilerGenerated]
			get
			{
				return _ListChapters;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ListChapters_Click;
				EventHandler value3 = ListChapters_DoubleClick;
				DragEventHandler value4 = ListChapters_DragDrop;
				EventHandler value5 = ListChapters_DragLeave;
				DragEventHandler value6 = ListChapters_DragOver;
				ItemDragEventHandler value7 = ListChapters_ItemDrag;
				ListViewItemMouseHoverEventHandler value8 = ListChapters_ItemMouseHover;
				EventHandler value9 = ListChapters_SelectedIndexChanged;
				ListView listChapters = _ListChapters;
				if (listChapters != null)
				{
					listChapters.Click -= value2;
					listChapters.DoubleClick -= value3;
					listChapters.DragDrop -= value4;
					listChapters.DragLeave -= value5;
					listChapters.DragOver -= value6;
					listChapters.ItemDrag -= value7;
					listChapters.ItemMouseHover -= value8;
					listChapters.SelectedIndexChanged -= value9;
				}
				_ListChapters = value;
				listChapters = _ListChapters;
				if (listChapters != null)
				{
					listChapters.Click += value2;
					listChapters.DoubleClick += value3;
					listChapters.DragDrop += value4;
					listChapters.DragLeave += value5;
					listChapters.DragOver += value6;
					listChapters.ItemDrag += value7;
					listChapters.ItemMouseHover += value8;
					listChapters.SelectedIndexChanged += value9;
				}
			}
		}

		[field: AccessedThroughProperty("_ListChapters_ColumnHeader_1")]
		internal virtual ColumnHeader _ListChapters_ColumnHeader_1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("_ListChapters_ColumnHeader_2")]
		internal virtual ColumnHeader _ListChapters_ColumnHeader_2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("_ListChapters_ColumnHeader_3")]
		internal virtual ColumnHeader _ListChapters_ColumnHeader_3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("_ListChapters_ColumnHeader_4")]
		internal virtual ColumnHeader _ListChapters_ColumnHeader_4
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("SplitContainer1")]
		internal virtual SplitContainer SplitContainer1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TableLayoutPanel4")]
		internal virtual TableLayoutPanel TableLayoutPanel4
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Splitter1")]
		internal virtual Splitter Splitter1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Splitter2")]
		internal virtual Splitter Splitter2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Splitter3")]
		internal virtual Splitter Splitter3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ContextMenuStrip ctxAllListsRC
		{
			[CompilerGenerated]
			get
			{
				return _ctxAllListsRC;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				CancelEventHandler value2 = ctxAllRC_Opening;
				ContextMenuStrip ctxAllListsRC = _ctxAllListsRC;
				if (ctxAllListsRC != null)
				{
					ctxAllListsRC.Opening -= value2;
				}
				_ctxAllListsRC = value;
				ctxAllListsRC = _ctxAllListsRC;
				if (ctxAllListsRC != null)
				{
					ctxAllListsRC.Opening += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ctxAddToAllSel
		{
			[CompilerGenerated]
			get
			{
				return _ctxAddToAllSel;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxAddToSel_Click;
				ToolStripMenuItem ctxAddToAllSel = _ctxAddToAllSel;
				if (ctxAddToAllSel != null)
				{
					ctxAddToAllSel.Click -= value2;
				}
				_ctxAddToAllSel = value;
				ctxAddToAllSel = _ctxAddToAllSel;
				if (ctxAddToAllSel != null)
				{
					ctxAddToAllSel.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ctxRemoveFromAllSel
		{
			[CompilerGenerated]
			get
			{
				return _ctxRemoveFromAllSel;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxRemoveFromSel_Click;
				ToolStripMenuItem ctxRemoveFromAllSel = _ctxRemoveFromAllSel;
				if (ctxRemoveFromAllSel != null)
				{
					ctxRemoveFromAllSel.Click -= value2;
				}
				_ctxRemoveFromAllSel = value;
				ctxRemoveFromAllSel = _ctxRemoveFromAllSel;
				if (ctxRemoveFromAllSel != null)
				{
					ctxRemoveFromAllSel.Click += value2;
				}
			}
		}

		internal virtual ContextMenuStrip ctxListsRC
		{
			[CompilerGenerated]
			get
			{
				return _ctxListsRC;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				CancelEventHandler value2 = ctxListsRC_Opening;
				ContextMenuStrip ctxListsRC = _ctxListsRC;
				if (ctxListsRC != null)
				{
					ctxListsRC.Opening -= value2;
				}
				_ctxListsRC = value;
				ctxListsRC = _ctxListsRC;
				if (ctxListsRC != null)
				{
					ctxListsRC.Opening += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ctxEditListItem
		{
			[CompilerGenerated]
			get
			{
				return _ctxEditListItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxEdititem_Click;
				ToolStripMenuItem ctxEditListItem = _ctxEditListItem;
				if (ctxEditListItem != null)
				{
					ctxEditListItem.Click -= value2;
				}
				_ctxEditListItem = value;
				ctxEditListItem = _ctxEditListItem;
				if (ctxEditListItem != null)
				{
					ctxEditListItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ctxRemoveFromScene
		{
			[CompilerGenerated]
			get
			{
				return _ctxRemoveFromScene;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxRemoveFromScene_Click;
				ToolStripMenuItem ctxRemoveFromScene = _ctxRemoveFromScene;
				if (ctxRemoveFromScene != null)
				{
					ctxRemoveFromScene.Click -= value2;
				}
				_ctxRemoveFromScene = value;
				ctxRemoveFromScene = _ctxRemoveFromScene;
				if (ctxRemoveFromScene != null)
				{
					ctxRemoveFromScene.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ctxSetVP
		{
			[CompilerGenerated]
			get
			{
				return _ctxSetVP;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxSetVP_Click;
				ToolStripMenuItem ctxSetVP = _ctxSetVP;
				if (ctxSetVP != null)
				{
					ctxSetVP.Click -= value2;
				}
				_ctxSetVP = value;
				ctxSetVP = _ctxSetVP;
				if (ctxSetVP != null)
				{
					ctxSetVP.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("StatusStrip1")]
		internal virtual StatusStrip StatusStrip1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripStatusLabel tssStatus
		{
			[CompilerGenerated]
			get
			{
				return _tssStatus;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tssStatus_Click;
				ToolStripStatusLabel tssStatus = _tssStatus;
				if (tssStatus != null)
				{
					tssStatus.Click -= value2;
				}
				_tssStatus = value;
				tssStatus = _tssStatus;
				if (tssStatus != null)
				{
					tssStatus.Click += value2;
				}
			}
		}

		internal virtual ToolStripStatusLabel tssWordcount
		{
			[CompilerGenerated]
			get
			{
				return _tssWordcount;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tssWordcount_Click;
				ToolStripStatusLabel tssWordcount = _tssWordcount;
				if (tssWordcount != null)
				{
					tssWordcount.Click -= value2;
				}
				_tssWordcount = value;
				tssWordcount = _tssWordcount;
				if (tssWordcount != null)
				{
					tssWordcount.Click += value2;
				}
			}
		}

		internal virtual ToolStripStatusLabel tssVersion
		{
			[CompilerGenerated]
			get
			{
				return _tssVersion;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tssVersion_Click;
				ToolStripStatusLabel tssVersion = _tssVersion;
				if (tssVersion != null)
				{
					tssVersion.Click -= value2;
				}
				_tssVersion = value;
				tssVersion = _tssVersion;
				if (tssVersion != null)
				{
					tssVersion.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("tssPrintProgress")]
		internal virtual ToolStripStatusLabel tssPrintProgress
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem ToggleChapterOtherToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ToggleChapterOtherToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ToggleChapterOtherToolStripMenuItem_Click;
				ToolStripMenuItem toggleChapterOtherToolStripMenuItem = _ToggleChapterOtherToolStripMenuItem;
				if (toggleChapterOtherToolStripMenuItem != null)
				{
					toggleChapterOtherToolStripMenuItem.Click -= value2;
				}
				_ToggleChapterOtherToolStripMenuItem = value;
				toggleChapterOtherToolStripMenuItem = _ToggleChapterOtherToolStripMenuItem;
				if (toggleChapterOtherToolStripMenuItem != null)
				{
					toggleChapterOtherToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ContextMenuStrip ctxScenes
		{
			[CompilerGenerated]
			get
			{
				return _ctxScenes;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				CancelEventHandler value2 = ctxScenes_Opening;
				ContextMenuStrip ctxScenes = _ctxScenes;
				if (ctxScenes != null)
				{
					ctxScenes.Opening -= value2;
				}
				_ctxScenes = value;
				ctxScenes = _ctxScenes;
				if (ctxScenes != null)
				{
					ctxScenes.Opening += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ctxAddNewScene
		{
			[CompilerGenerated]
			get
			{
				return _ctxAddNewScene;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuAddScene_Click;
				ToolStripMenuItem ctxAddNewScene = _ctxAddNewScene;
				if (ctxAddNewScene != null)
				{
					ctxAddNewScene.Click -= value2;
				}
				_ctxAddNewScene = value;
				ctxAddNewScene = _ctxAddNewScene;
				if (ctxAddNewScene != null)
				{
					ctxAddNewScene.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ctxEditSelected
		{
			[CompilerGenerated]
			get
			{
				return _ctxEditSelected;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuEditScene_Click;
				ToolStripMenuItem ctxEditSelected = _ctxEditSelected;
				if (ctxEditSelected != null)
				{
					ctxEditSelected.Click -= value2;
				}
				_ctxEditSelected = value;
				ctxEditSelected = _ctxEditSelected;
				if (ctxEditSelected != null)
				{
					ctxEditSelected.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator1")]
		internal virtual ToolStripSeparator ToolStripSeparator1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem ctxSetStatus
		{
			[CompilerGenerated]
			get
			{
				return _ctxSetStatus;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxSetStatus_Click;
				ToolStripMenuItem ctxSetStatus = _ctxSetStatus;
				if (ctxSetStatus != null)
				{
					ctxSetStatus.Click -= value2;
				}
				_ctxSetStatus = value;
				ctxSetStatus = _ctxSetStatus;
				if (ctxSetStatus != null)
				{
					ctxSetStatus.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ctxToggleUsed
		{
			[CompilerGenerated]
			get
			{
				return _ctxToggleUsed;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxToggleUsed_Click;
				ToolStripMenuItem ctxToggleUsed = _ctxToggleUsed;
				if (ctxToggleUsed != null)
				{
					ctxToggleUsed.Click -= value2;
				}
				_ctxToggleUsed = value;
				ctxToggleUsed = _ctxToggleUsed;
				if (ctxToggleUsed != null)
				{
					ctxToggleUsed.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator2")]
		internal virtual ToolStripSeparator ToolStripSeparator2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem ctxRemoveSelected
		{
			[CompilerGenerated]
			get
			{
				return _ctxRemoveSelected;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuRemoveScene_Click;
				ToolStripMenuItem ctxRemoveSelected = _ctxRemoveSelected;
				if (ctxRemoveSelected != null)
				{
					ctxRemoveSelected.Click -= value2;
				}
				_ctxRemoveSelected = value;
				ctxRemoveSelected = _ctxRemoveSelected;
				if (ctxRemoveSelected != null)
				{
					ctxRemoveSelected.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuSetStatus
		{
			[CompilerGenerated]
			get
			{
				return _mnuSetStatus;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSetStatus_DropDownOpening;
				ToolStripMenuItem mnuSetStatus = _mnuSetStatus;
				if (mnuSetStatus != null)
				{
					mnuSetStatus.DropDownOpening -= value2;
				}
				_mnuSetStatus = value;
				mnuSetStatus = _mnuSetStatus;
				if (mnuSetStatus != null)
				{
					mnuSetStatus.DropDownOpening += value2;
				}
			}
		}

		[field: AccessedThroughProperty("mnuUsedUnused")]
		internal virtual ToolStripMenuItem mnuUsedUnused
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator3")]
		internal virtual ToolStripSeparator ToolStripSeparator3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem CombineSelectedChaptersToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _CombineSelectedChaptersToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = CombineSelectedChaptersToolStripMenuItem_Click;
				ToolStripMenuItem combineSelectedChaptersToolStripMenuItem = _CombineSelectedChaptersToolStripMenuItem;
				if (combineSelectedChaptersToolStripMenuItem != null)
				{
					combineSelectedChaptersToolStripMenuItem.Click -= value2;
				}
				_CombineSelectedChaptersToolStripMenuItem = value;
				combineSelectedChaptersToolStripMenuItem = _CombineSelectedChaptersToolStripMenuItem;
				if (combineSelectedChaptersToolStripMenuItem != null)
				{
					combineSelectedChaptersToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem DeleteDuplicateScenesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _DeleteDuplicateScenesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = DeleteDuplicateScenesToolStripMenuItem_Click;
				ToolStripMenuItem deleteDuplicateScenesToolStripMenuItem = _DeleteDuplicateScenesToolStripMenuItem;
				if (deleteDuplicateScenesToolStripMenuItem != null)
				{
					deleteDuplicateScenesToolStripMenuItem.Click -= value2;
				}
				_DeleteDuplicateScenesToolStripMenuItem = value;
				deleteDuplicateScenesToolStripMenuItem = _DeleteDuplicateScenesToolStripMenuItem;
				if (deleteDuplicateScenesToolStripMenuItem != null)
				{
					deleteDuplicateScenesToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("colChar")]
		internal virtual ColumnHeader colChar
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("colLocations")]
		internal virtual ColumnHeader colLocations
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("colItems")]
		internal virtual ColumnHeader colItems
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator4")]
		internal virtual ToolStripSeparator ToolStripSeparator4
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ContextMenuStrip ctxChapters
		{
			[CompilerGenerated]
			get
			{
				return _ctxChapters;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				CancelEventHandler value2 = ctxChapters_Opening;
				ContextMenuStrip ctxChapters = _ctxChapters;
				if (ctxChapters != null)
				{
					ctxChapters.Opening -= value2;
				}
				_ctxChapters = value;
				ctxChapters = _ctxChapters;
				if (ctxChapters != null)
				{
					ctxChapters.Opening += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ctxChapNew
		{
			[CompilerGenerated]
			get
			{
				return _ctxChapNew;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFileNew_Click;
				ToolStripMenuItem ctxChapNew = _ctxChapNew;
				if (ctxChapNew != null)
				{
					ctxChapNew.Click -= value2;
				}
				_ctxChapNew = value;
				ctxChapNew = _ctxChapNew;
				if (ctxChapNew != null)
				{
					ctxChapNew.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ctxChapEdit
		{
			[CompilerGenerated]
			get
			{
				return _ctxChapEdit;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuEditChapter_Click;
				ToolStripMenuItem ctxChapEdit = _ctxChapEdit;
				if (ctxChapEdit != null)
				{
					ctxChapEdit.Click -= value2;
				}
				_ctxChapEdit = value;
				ctxChapEdit = _ctxChapEdit;
				if (ctxChapEdit != null)
				{
					ctxChapEdit.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator5")]
		internal virtual ToolStripSeparator ToolStripSeparator5
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem ctxChapToggleUsed
		{
			[CompilerGenerated]
			get
			{
				return _ctxChapToggleUsed;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuMarkChaptersUnused_Click;
				ToolStripMenuItem ctxChapToggleUsed = _ctxChapToggleUsed;
				if (ctxChapToggleUsed != null)
				{
					ctxChapToggleUsed.Click -= value2;
				}
				_ctxChapToggleUsed = value;
				ctxChapToggleUsed = _ctxChapToggleUsed;
				if (ctxChapToggleUsed != null)
				{
					ctxChapToggleUsed.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ctxChapToggleType
		{
			[CompilerGenerated]
			get
			{
				return _ctxChapToggleType;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ToggleChapterOtherToolStripMenuItem_Click;
				ToolStripMenuItem ctxChapToggleType = _ctxChapToggleType;
				if (ctxChapToggleType != null)
				{
					ctxChapToggleType.Click -= value2;
				}
				_ctxChapToggleType = value;
				ctxChapToggleType = _ctxChapToggleType;
				if (ctxChapToggleType != null)
				{
					ctxChapToggleType.Click += value2;
				}
			}
		}

		internal virtual ToolStripSplitButton tssBackupButton
		{
			[CompilerGenerated]
			get
			{
				return _tssBackupButton;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuBackupProject_Click;
				ToolStripSplitButton tssBackupButton = _tssBackupButton;
				if (tssBackupButton != null)
				{
					tssBackupButton.ButtonClick -= value2;
				}
				_tssBackupButton = value;
				tssBackupButton = _tssBackupButton;
				if (tssBackupButton != null)
				{
					tssBackupButton.ButtonClick += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuSceneList
		{
			[CompilerGenerated]
			get
			{
				return _mnuSceneList;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSceneList_Click;
				ToolStripMenuItem mnuSceneList = _mnuSceneList;
				if (mnuSceneList != null)
				{
					mnuSceneList.Click -= value2;
				}
				_mnuSceneList = value;
				mnuSceneList = _mnuSceneList;
				if (mnuSceneList != null)
				{
					mnuSceneList.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("Panel2")]
		internal virtual Panel Panel2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem mnuConvYW2Scn
		{
			[CompilerGenerated]
			get
			{
				return _mnuConvYW2Scn;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuConvYW2Scn_Click;
				ToolStripMenuItem mnuConvYW2Scn = _mnuConvYW2Scn;
				if (mnuConvYW2Scn != null)
				{
					mnuConvYW2Scn.Click -= value2;
				}
				_mnuConvYW2Scn = value;
				mnuConvYW2Scn = _mnuConvYW2Scn;
				if (mnuConvYW2Scn != null)
				{
					mnuConvYW2Scn.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuPrint
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrint;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrint_DropDownOpening;
				EventHandler value3 = mnuPrint_Click;
				ToolStripMenuItem mnuPrint = _mnuPrint;
				if (mnuPrint != null)
				{
					mnuPrint.DropDownOpening -= value2;
					mnuPrint.Click -= value3;
				}
				_mnuPrint = value;
				mnuPrint = _mnuPrint;
				if (mnuPrint != null)
				{
					mnuPrint.DropDownOpening += value2;
					mnuPrint.Click += value3;
				}
			}
		}

		[field: AccessedThroughProperty("mnuPrintWorkSched")]
		internal virtual ToolStripMenuItem mnuPrintWorkSched
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem mnuPrintOnStatus0
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintOnStatus0;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrintOnStatus_Click;
				ToolStripMenuItem mnuPrintOnStatus = _mnuPrintOnStatus0;
				if (mnuPrintOnStatus != null)
				{
					mnuPrintOnStatus.Click -= value2;
				}
				_mnuPrintOnStatus0 = value;
				mnuPrintOnStatus = _mnuPrintOnStatus0;
				if (mnuPrintOnStatus != null)
				{
					mnuPrintOnStatus.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuPrintOnStatus1
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintOnStatus1;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrintOnStatus_Click;
				ToolStripMenuItem mnuPrintOnStatus = _mnuPrintOnStatus1;
				if (mnuPrintOnStatus != null)
				{
					mnuPrintOnStatus.Click -= value2;
				}
				_mnuPrintOnStatus1 = value;
				mnuPrintOnStatus = _mnuPrintOnStatus1;
				if (mnuPrintOnStatus != null)
				{
					mnuPrintOnStatus.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuPrintOnStatus2
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintOnStatus2;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrintOnStatus_Click;
				ToolStripMenuItem mnuPrintOnStatus = _mnuPrintOnStatus2;
				if (mnuPrintOnStatus != null)
				{
					mnuPrintOnStatus.Click -= value2;
				}
				_mnuPrintOnStatus2 = value;
				mnuPrintOnStatus = _mnuPrintOnStatus2;
				if (mnuPrintOnStatus != null)
				{
					mnuPrintOnStatus.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuPrintOnStatus3
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintOnStatus3;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrintOnStatus_Click;
				ToolStripMenuItem mnuPrintOnStatus = _mnuPrintOnStatus3;
				if (mnuPrintOnStatus != null)
				{
					mnuPrintOnStatus.Click -= value2;
				}
				_mnuPrintOnStatus3 = value;
				mnuPrintOnStatus = _mnuPrintOnStatus3;
				if (mnuPrintOnStatus != null)
				{
					mnuPrintOnStatus.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuPrintOnStatus4
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintOnStatus4;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrintOnStatus_Click;
				ToolStripMenuItem mnuPrintOnStatus = _mnuPrintOnStatus4;
				if (mnuPrintOnStatus != null)
				{
					mnuPrintOnStatus.Click -= value2;
				}
				_mnuPrintOnStatus4 = value;
				mnuPrintOnStatus = _mnuPrintOnStatus4;
				if (mnuPrintOnStatus != null)
				{
					mnuPrintOnStatus.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuPrintSummary
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintSummary;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrintSummary_Click;
				ToolStripMenuItem mnuPrintSummary = _mnuPrintSummary;
				if (mnuPrintSummary != null)
				{
					mnuPrintSummary.Click -= value2;
				}
				_mnuPrintSummary = value;
				mnuPrintSummary = _mnuPrintSummary;
				if (mnuPrintSummary != null)
				{
					mnuPrintSummary.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuPrintSynopsis
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintSynopsis;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrintSynopsis_Click;
				ToolStripMenuItem mnuPrintSynopsis = _mnuPrintSynopsis;
				if (mnuPrintSynopsis != null)
				{
					mnuPrintSynopsis.Click -= value2;
				}
				_mnuPrintSynopsis = value;
				mnuPrintSynopsis = _mnuPrintSynopsis;
				if (mnuPrintSynopsis != null)
				{
					mnuPrintSynopsis.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuPrintFullSynopsis
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintFullSynopsis;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuFullSynopsis_Click;
				ToolStripMenuItem mnuPrintFullSynopsis = _mnuPrintFullSynopsis;
				if (mnuPrintFullSynopsis != null)
				{
					mnuPrintFullSynopsis.Click -= value2;
				}
				_mnuPrintFullSynopsis = value;
				mnuPrintFullSynopsis = _mnuPrintFullSynopsis;
				if (mnuPrintFullSynopsis != null)
				{
					mnuPrintFullSynopsis.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuPrintProject
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintProject;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrintProject_Click;
				ToolStripMenuItem mnuPrintProject = _mnuPrintProject;
				if (mnuPrintProject != null)
				{
					mnuPrintProject.Click -= value2;
				}
				_mnuPrintProject = value;
				mnuPrintProject = _mnuPrintProject;
				if (mnuPrintProject != null)
				{
					mnuPrintProject.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuPrintScene
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintScene;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrintScene_Click;
				ToolStripMenuItem mnuPrintScene = _mnuPrintScene;
				if (mnuPrintScene != null)
				{
					mnuPrintScene.Click -= value2;
				}
				_mnuPrintScene = value;
				mnuPrintScene = _mnuPrintScene;
				if (mnuPrintScene != null)
				{
					mnuPrintScene.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuPrintSceneCards
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintSceneCards;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrintSceneCards_Click;
				ToolStripMenuItem mnuPrintSceneCards = _mnuPrintSceneCards;
				if (mnuPrintSceneCards != null)
				{
					mnuPrintSceneCards.Click -= value2;
				}
				_mnuPrintSceneCards = value;
				mnuPrintSceneCards = _mnuPrintSceneCards;
				if (mnuPrintSceneCards != null)
				{
					mnuPrintSceneCards.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuPrintLocationList
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintLocationList;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrintLocationList_Click;
				ToolStripMenuItem mnuPrintLocationList = _mnuPrintLocationList;
				if (mnuPrintLocationList != null)
				{
					mnuPrintLocationList.Click -= value2;
				}
				_mnuPrintLocationList = value;
				mnuPrintLocationList = _mnuPrintLocationList;
				if (mnuPrintLocationList != null)
				{
					mnuPrintLocationList.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuPrintChar
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintChar;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrintChar_Click;
				ToolStripMenuItem mnuPrintChar = _mnuPrintChar;
				if (mnuPrintChar != null)
				{
					mnuPrintChar.Click -= value2;
				}
				_mnuPrintChar = value;
				mnuPrintChar = _mnuPrintChar;
				if (mnuPrintChar != null)
				{
					mnuPrintChar.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuPrintItemList
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintItemList;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrintItemList_Click;
				ToolStripMenuItem mnuPrintItemList = _mnuPrintItemList;
				if (mnuPrintItemList != null)
				{
					mnuPrintItemList.Click -= value2;
				}
				_mnuPrintItemList = value;
				mnuPrintItemList = _mnuPrintItemList;
				if (mnuPrintItemList != null)
				{
					mnuPrintItemList.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuProject
		{
			[CompilerGenerated]
			get
			{
				return _mnuProject;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuProject_Click;
				EventHandler value3 = mnuProject_DropDownOpening;
				ToolStripMenuItem mnuProject = _mnuProject;
				if (mnuProject != null)
				{
					mnuProject.Click -= value2;
					mnuProject.DropDownOpening -= value3;
				}
				_mnuProject = value;
				mnuProject = _mnuProject;
				if (mnuProject != null)
				{
					mnuProject.Click += value2;
					mnuProject.DropDownOpening += value3;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuLoadProj
		{
			[CompilerGenerated]
			get
			{
				return _mnuLoadProj;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuLoadProj_Click;
				ToolStripMenuItem mnuLoadProj = _mnuLoadProj;
				if (mnuLoadProj != null)
				{
					mnuLoadProj.Click -= value2;
				}
				_mnuLoadProj = value;
				mnuLoadProj = _mnuLoadProj;
				if (mnuLoadProj != null)
				{
					mnuLoadProj.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("mnuOpenRecent")]
		internal virtual ToolStripMenuItem mnuOpenRecent
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem mnuSaveProj
		{
			[CompilerGenerated]
			get
			{
				return _mnuSaveProj;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSaveProj_Click;
				ToolStripMenuItem mnuSaveProj = _mnuSaveProj;
				if (mnuSaveProj != null)
				{
					mnuSaveProj.Click -= value2;
				}
				_mnuSaveProj = value;
				mnuSaveProj = _mnuSaveProj;
				if (mnuSaveProj != null)
				{
					mnuSaveProj.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuSaveAs
		{
			[CompilerGenerated]
			get
			{
				return _mnuSaveAs;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSaveAs_Click;
				ToolStripMenuItem mnuSaveAs = _mnuSaveAs;
				if (mnuSaveAs != null)
				{
					mnuSaveAs.Click -= value2;
				}
				_mnuSaveAs = value;
				mnuSaveAs = _mnuSaveAs;
				if (mnuSaveAs != null)
				{
					mnuSaveAs.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuCloseProject
		{
			[CompilerGenerated]
			get
			{
				return _mnuCloseProject;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuCloseProject_Click;
				ToolStripMenuItem mnuCloseProject = _mnuCloseProject;
				if (mnuCloseProject != null)
				{
					mnuCloseProject.Click -= value2;
				}
				_mnuCloseProject = value;
				mnuCloseProject = _mnuCloseProject;
				if (mnuCloseProject != null)
				{
					mnuCloseProject.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("pbarcreatetext")]
		internal virtual ToolStripSeparator pbarcreatetext
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem mnuNewProj
		{
			[CompilerGenerated]
			get
			{
				return _mnuNewProj;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuNewProj_Click;
				ToolStripMenuItem mnuNewProj = _mnuNewProj;
				if (mnuNewProj != null)
				{
					mnuNewProj.Click -= value2;
				}
				_mnuNewProj = value;
				mnuNewProj = _mnuNewProj;
				if (mnuNewProj != null)
				{
					mnuNewProj.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuProjectGen
		{
			[CompilerGenerated]
			get
			{
				return _mnuProjectGen;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuProjectGen_Click;
				ToolStripMenuItem mnuProjectGen = _mnuProjectGen;
				if (mnuProjectGen != null)
				{
					mnuProjectGen.Click -= value2;
				}
				_mnuProjectGen = value;
				mnuProjectGen = _mnuProjectGen;
				if (mnuProjectGen != null)
				{
					mnuProjectGen.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("pbart")]
		internal virtual ToolStripSeparator pbart
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("pbarm")]
		internal virtual ToolStripSeparator pbarm
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem mnuExportProj
		{
			[CompilerGenerated]
			get
			{
				return _mnuExportProj;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuExportProj_DropDownOpening;
				ToolStripMenuItem mnuExportProj = _mnuExportProj;
				if (mnuExportProj != null)
				{
					mnuExportProj.DropDownOpening -= value2;
				}
				_mnuExportProj = value;
				mnuExportProj = _mnuExportProj;
				if (mnuExportProj != null)
				{
					mnuExportProj.DropDownOpening += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuExportHTML
		{
			[CompilerGenerated]
			get
			{
				return _mnuExportHTML;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuExportHTML_Click;
				ToolStripMenuItem mnuExportHTML = _mnuExportHTML;
				if (mnuExportHTML != null)
				{
					mnuExportHTML.Click -= value2;
				}
				_mnuExportHTML = value;
				mnuExportHTML = _mnuExportHTML;
				if (mnuExportHTML != null)
				{
					mnuExportHTML.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuCombineFiles
		{
			[CompilerGenerated]
			get
			{
				return _mnuCombineFiles;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuCombineFiles_Click;
				ToolStripMenuItem mnuCombineFiles = _mnuCombineFiles;
				if (mnuCombineFiles != null)
				{
					mnuCombineFiles.Click -= value2;
				}
				_mnuCombineFiles = value;
				mnuCombineFiles = _mnuCombineFiles;
				if (mnuCombineFiles != null)
				{
					mnuCombineFiles.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuExportToRTF
		{
			[CompilerGenerated]
			get
			{
				return _mnuExportToRTF;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuExportToRTF_Click;
				ToolStripMenuItem mnuExportToRTF = _mnuExportToRTF;
				if (mnuExportToRTF != null)
				{
					mnuExportToRTF.Click -= value2;
				}
				_mnuExportToRTF = value;
				mnuExportToRTF = _mnuExportToRTF;
				if (mnuExportToRTF != null)
				{
					mnuExportToRTF.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuExportNano
		{
			[CompilerGenerated]
			get
			{
				return _mnuExportNano;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuExportNano_Click;
				ToolStripMenuItem mnuExportNano = _mnuExportNano;
				if (mnuExportNano != null)
				{
					mnuExportNano.Click -= value2;
				}
				_mnuExportNano = value;
				mnuExportNano = _mnuExportNano;
				if (mnuExportNano != null)
				{
					mnuExportNano.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuExportOutline
		{
			[CompilerGenerated]
			get
			{
				return _mnuExportOutline;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuExportOutline_Click;
				ToolStripMenuItem mnuExportOutline = _mnuExportOutline;
				if (mnuExportOutline != null)
				{
					mnuExportOutline.Click -= value2;
				}
				_mnuExportOutline = value;
				mnuExportOutline = _mnuExportOutline;
				if (mnuExportOutline != null)
				{
					mnuExportOutline.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuSaveSynopsis
		{
			[CompilerGenerated]
			get
			{
				return _mnuSaveSynopsis;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSaveSynopsis_Click;
				ToolStripMenuItem mnuSaveSynopsis = _mnuSaveSynopsis;
				if (mnuSaveSynopsis != null)
				{
					mnuSaveSynopsis.Click -= value2;
				}
				_mnuSaveSynopsis = value;
				mnuSaveSynopsis = _mnuSaveSynopsis;
				if (mnuSaveSynopsis != null)
				{
					mnuSaveSynopsis.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuExportTimeline
		{
			[CompilerGenerated]
			get
			{
				return _mnuExportTimeline;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuExportTimeline_Click;
				ToolStripMenuItem mnuExportTimeline = _mnuExportTimeline;
				if (mnuExportTimeline != null)
				{
					mnuExportTimeline.Click -= value2;
				}
				_mnuExportTimeline = value;
				mnuExportTimeline = _mnuExportTimeline;
				if (mnuExportTimeline != null)
				{
					mnuExportTimeline.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuExportDesc
		{
			[CompilerGenerated]
			get
			{
				return _mnuExportDesc;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuExportDesc_Click;
				ToolStripMenuItem mnuExportDesc = _mnuExportDesc;
				if (mnuExportDesc != null)
				{
					mnuExportDesc.Click -= value2;
				}
				_mnuExportDesc = value;
				mnuExportDesc = _mnuExportDesc;
				if (mnuExportDesc != null)
				{
					mnuExportDesc.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("mnubar33")]
		internal virtual ToolStripSeparator mnubar33
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem mnuSettings
		{
			[CompilerGenerated]
			get
			{
				return _mnuSettings;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSettings_Click;
				ToolStripMenuItem mnuSettings = _mnuSettings;
				if (mnuSettings != null)
				{
					mnuSettings.Click -= value2;
				}
				_mnuSettings = value;
				mnuSettings = _mnuSettings;
				if (mnuSettings != null)
				{
					mnuSettings.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator7")]
		internal virtual ToolStripSeparator ToolStripSeparator7
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem mnuConfirmExit
		{
			[CompilerGenerated]
			get
			{
				return _mnuConfirmExit;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuConfirmExit_Click;
				ToolStripMenuItem mnuConfirmExit = _mnuConfirmExit;
				if (mnuConfirmExit != null)
				{
					mnuConfirmExit.Click -= value2;
				}
				_mnuConfirmExit = value;
				mnuConfirmExit = _mnuConfirmExit;
				if (mnuConfirmExit != null)
				{
					mnuConfirmExit.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuImportyWriter2
		{
			[CompilerGenerated]
			get
			{
				return _mnuImportyWriter2;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuImportyWriter2_Click;
				ToolStripMenuItem mnuImportyWriter = _mnuImportyWriter2;
				if (mnuImportyWriter != null)
				{
					mnuImportyWriter.Click -= value2;
				}
				_mnuImportyWriter2 = value;
				mnuImportyWriter = _mnuImportyWriter2;
				if (mnuImportyWriter != null)
				{
					mnuImportyWriter.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuImportyWriter3
		{
			[CompilerGenerated]
			get
			{
				return _mnuImportyWriter3;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuImportyWriter3_Click;
				ToolStripMenuItem mnuImportyWriter = _mnuImportyWriter3;
				if (mnuImportyWriter != null)
				{
					mnuImportyWriter.Click -= value2;
				}
				_mnuImportyWriter3 = value;
				mnuImportyWriter = _mnuImportyWriter3;
				if (mnuImportyWriter != null)
				{
					mnuImportyWriter.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator8")]
		internal virtual ToolStripSeparator ToolStripSeparator8
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator9")]
		internal virtual ToolStripSeparator ToolStripSeparator9
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ContextMenuStrip ctxNotes
		{
			[CompilerGenerated]
			get
			{
				return _ctxNotes;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				CancelEventHandler value2 = ctxNotes_Opening;
				ContextMenuStrip ctxNotes = _ctxNotes;
				if (ctxNotes != null)
				{
					ctxNotes.Opening -= value2;
				}
				_ctxNotes = value;
				ctxNotes = _ctxNotes;
				if (ctxNotes != null)
				{
					ctxNotes.Opening += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem PrintSelectedNotesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _PrintSelectedNotesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = PrintSelectedNotesToolStripMenuItem_Click;
				ToolStripMenuItem printSelectedNotesToolStripMenuItem = _PrintSelectedNotesToolStripMenuItem;
				if (printSelectedNotesToolStripMenuItem != null)
				{
					printSelectedNotesToolStripMenuItem.Click -= value2;
				}
				_PrintSelectedNotesToolStripMenuItem = value;
				printSelectedNotesToolStripMenuItem = _PrintSelectedNotesToolStripMenuItem;
				if (printSelectedNotesToolStripMenuItem != null)
				{
					printSelectedNotesToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuUIFontSize
		{
			[CompilerGenerated]
			get
			{
				return _mnuUIFontSize;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = SetUserInterfaceFontSizeToolStripMenuItem_Click;
				ToolStripMenuItem mnuUIFontSize = _mnuUIFontSize;
				if (mnuUIFontSize != null)
				{
					mnuUIFontSize.Click -= value2;
				}
				_mnuUIFontSize = value;
				mnuUIFontSize = _mnuUIFontSize;
				if (mnuUIFontSize != null)
				{
					mnuUIFontSize.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuImportyWriter4
		{
			[CompilerGenerated]
			get
			{
				return _mnuImportyWriter4;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuImportyWriter4_Click;
				ToolStripMenuItem mnuImportyWriter = _mnuImportyWriter4;
				if (mnuImportyWriter != null)
				{
					mnuImportyWriter.Click -= value2;
				}
				_mnuImportyWriter4 = value;
				mnuImportyWriter = _mnuImportyWriter4;
				if (mnuImportyWriter != null)
				{
					mnuImportyWriter.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuExportData
		{
			[CompilerGenerated]
			get
			{
				return _mnuExportData;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuExportData_DropDownOpening;
				ToolStripMenuItem mnuExportData = _mnuExportData;
				if (mnuExportData != null)
				{
					mnuExportData.DropDownOpening -= value2;
				}
				_mnuExportData = value;
				mnuExportData = _mnuExportData;
				if (mnuExportData != null)
				{
					mnuExportData.DropDownOpening += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem tsmExportChar
		{
			[CompilerGenerated]
			get
			{
				return _tsmExportChar;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsmExportChar_Click;
				ToolStripMenuItem tsmExportChar = _tsmExportChar;
				if (tsmExportChar != null)
				{
					tsmExportChar.Click -= value2;
				}
				_tsmExportChar = value;
				tsmExportChar = _tsmExportChar;
				if (tsmExportChar != null)
				{
					tsmExportChar.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem tsmExportLocations
		{
			[CompilerGenerated]
			get
			{
				return _tsmExportLocations;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsmExportLocations_Click;
				ToolStripMenuItem tsmExportLocations = _tsmExportLocations;
				if (tsmExportLocations != null)
				{
					tsmExportLocations.Click -= value2;
				}
				_tsmExportLocations = value;
				tsmExportLocations = _tsmExportLocations;
				if (tsmExportLocations != null)
				{
					tsmExportLocations.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem tsmExportItems
		{
			[CompilerGenerated]
			get
			{
				return _tsmExportItems;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsmExportItems_Click;
				ToolStripMenuItem tsmExportItems = _tsmExportItems;
				if (tsmExportItems != null)
				{
					tsmExportItems.Click -= value2;
				}
				_tsmExportItems = value;
				tsmExportItems = _tsmExportItems;
				if (tsmExportItems != null)
				{
					tsmExportItems.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ImportFileToolStripMenuItem")]
		internal virtual ToolStripMenuItem ImportFileToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem mnuImportProject
		{
			[CompilerGenerated]
			get
			{
				return _mnuImportProject;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuImportProject_Click;
				ToolStripMenuItem mnuImportProject = _mnuImportProject;
				if (mnuImportProject != null)
				{
					mnuImportProject.Click -= value2;
				}
				_mnuImportProject = value;
				mnuImportProject = _mnuImportProject;
				if (mnuImportProject != null)
				{
					mnuImportProject.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuImportSceneFile
		{
			[CompilerGenerated]
			get
			{
				return _mnuImportSceneFile;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuImportSceneFile_Click;
				ToolStripMenuItem mnuImportSceneFile = _mnuImportSceneFile;
				if (mnuImportSceneFile != null)
				{
					mnuImportSceneFile.Click -= value2;
				}
				_mnuImportSceneFile = value;
				mnuImportSceneFile = _mnuImportSceneFile;
				if (mnuImportSceneFile != null)
				{
					mnuImportSceneFile.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ImportDataToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ImportDataToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ImportDataToolStripMenuItem_DropDownOpening;
				ToolStripMenuItem importDataToolStripMenuItem = _ImportDataToolStripMenuItem;
				if (importDataToolStripMenuItem != null)
				{
					importDataToolStripMenuItem.DropDownOpening -= value2;
				}
				_ImportDataToolStripMenuItem = value;
				importDataToolStripMenuItem = _ImportDataToolStripMenuItem;
				if (importDataToolStripMenuItem != null)
				{
					importDataToolStripMenuItem.DropDownOpening += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ImportCharactersToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ImportCharactersToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ImportCharactersToolStripMenuItem_Click;
				ToolStripMenuItem importCharactersToolStripMenuItem = _ImportCharactersToolStripMenuItem;
				if (importCharactersToolStripMenuItem != null)
				{
					importCharactersToolStripMenuItem.Click -= value2;
				}
				_ImportCharactersToolStripMenuItem = value;
				importCharactersToolStripMenuItem = _ImportCharactersToolStripMenuItem;
				if (importCharactersToolStripMenuItem != null)
				{
					importCharactersToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ImportLocationsToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ImportLocationsToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ImportLocationsToolStripMenuItem_Click;
				ToolStripMenuItem importLocationsToolStripMenuItem = _ImportLocationsToolStripMenuItem;
				if (importLocationsToolStripMenuItem != null)
				{
					importLocationsToolStripMenuItem.Click -= value2;
				}
				_ImportLocationsToolStripMenuItem = value;
				importLocationsToolStripMenuItem = _ImportLocationsToolStripMenuItem;
				if (importLocationsToolStripMenuItem != null)
				{
					importLocationsToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ImportItemsToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ImportItemsToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ImportItemsToolStripMenuItem_Click;
				ToolStripMenuItem importItemsToolStripMenuItem = _ImportItemsToolStripMenuItem;
				if (importItemsToolStripMenuItem != null)
				{
					importItemsToolStripMenuItem.Click -= value2;
				}
				_ImportItemsToolStripMenuItem = value;
				importItemsToolStripMenuItem = _ImportItemsToolStripMenuItem;
				if (importItemsToolStripMenuItem != null)
				{
					importItemsToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuPrintSceneNotes
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintSceneNotes;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = SceneTitlesNotesToolStripMenuItem_Click;
				ToolStripMenuItem mnuPrintSceneNotes = _mnuPrintSceneNotes;
				if (mnuPrintSceneNotes != null)
				{
					mnuPrintSceneNotes.Click -= value2;
				}
				_mnuPrintSceneNotes = value;
				mnuPrintSceneNotes = _mnuPrintSceneNotes;
				if (mnuPrintSceneNotes != null)
				{
					mnuPrintSceneNotes.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem DeleteNoteToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _DeleteNoteToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = DeleteToolStripMenuItem_Click;
				ToolStripMenuItem deleteNoteToolStripMenuItem = _DeleteNoteToolStripMenuItem;
				if (deleteNoteToolStripMenuItem != null)
				{
					deleteNoteToolStripMenuItem.Click -= value2;
				}
				_DeleteNoteToolStripMenuItem = value;
				deleteNoteToolStripMenuItem = _DeleteNoteToolStripMenuItem;
				if (deleteNoteToolStripMenuItem != null)
				{
					deleteNoteToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator10")]
		internal virtual ToolStripSeparator ToolStripSeparator10
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem ConfigureFTPSitesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ConfigureFTPSitesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ConfigureFTPSitesToolStripMenuItem_Click;
				ToolStripMenuItem configureFTPSitesToolStripMenuItem = _ConfigureFTPSitesToolStripMenuItem;
				if (configureFTPSitesToolStripMenuItem != null)
				{
					configureFTPSitesToolStripMenuItem.Click -= value2;
				}
				_ConfigureFTPSitesToolStripMenuItem = value;
				configureFTPSitesToolStripMenuItem = _ConfigureFTPSitesToolStripMenuItem;
				if (configureFTPSitesToolStripMenuItem != null)
				{
					configureFTPSitesToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem BackupToFTPToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _BackupToFTPToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = BackupToFTPToolStripMenuItem_Click;
				ToolStripMenuItem backupToFTPToolStripMenuItem = _BackupToFTPToolStripMenuItem;
				if (backupToFTPToolStripMenuItem != null)
				{
					backupToFTPToolStripMenuItem.Click -= value2;
				}
				_BackupToFTPToolStripMenuItem = value;
				backupToFTPToolStripMenuItem = _BackupToFTPToolStripMenuItem;
				if (backupToFTPToolStripMenuItem != null)
				{
					backupToFTPToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator11")]
		internal virtual ToolStripSeparator ToolStripSeparator11
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem ctxChapMarkMiddle
		{
			[CompilerGenerated]
			get
			{
				return _ctxChapMarkMiddle;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuMarkEndBeginning_Click;
				ToolStripMenuItem ctxChapMarkMiddle = _ctxChapMarkMiddle;
				if (ctxChapMarkMiddle != null)
				{
					ctxChapMarkMiddle.Click -= value2;
				}
				_ctxChapMarkMiddle = value;
				ctxChapMarkMiddle = _ctxChapMarkMiddle;
				if (ctxChapMarkMiddle != null)
				{
					ctxChapMarkMiddle.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ctxChapMarkEnd
		{
			[CompilerGenerated]
			get
			{
				return _ctxChapMarkEnd;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuMarkEndMiddle_Click;
				ToolStripMenuItem ctxChapMarkEnd = _ctxChapMarkEnd;
				if (ctxChapMarkEnd != null)
				{
					ctxChapMarkEnd.Click -= value2;
				}
				_ctxChapMarkEnd = value;
				ctxChapMarkEnd = _ctxChapMarkEnd;
				if (ctxChapMarkEnd != null)
				{
					ctxChapMarkEnd.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuSaveToSingleFile
		{
			[CompilerGenerated]
			get
			{
				return _mnuSaveToSingleFile;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuSaveToSingleFile_Click;
				ToolStripMenuItem mnuSaveToSingleFile = _mnuSaveToSingleFile;
				if (mnuSaveToSingleFile != null)
				{
					mnuSaveToSingleFile.Click -= value2;
				}
				_mnuSaveToSingleFile = value;
				mnuSaveToSingleFile = _mnuSaveToSingleFile;
				if (mnuSaveToSingleFile != null)
				{
					mnuSaveToSingleFile.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator12")]
		internal virtual ToolStripSeparator ToolStripSeparator12
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem OpenRTFWithDefaultEditorToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _OpenRTFWithDefaultEditorToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = OpenRTFWithDefaultEditorToolStripMenuItem_Click;
				ToolStripMenuItem openRTFWithDefaultEditorToolStripMenuItem = _OpenRTFWithDefaultEditorToolStripMenuItem;
				if (openRTFWithDefaultEditorToolStripMenuItem != null)
				{
					openRTFWithDefaultEditorToolStripMenuItem.Click -= value2;
				}
				_OpenRTFWithDefaultEditorToolStripMenuItem = value;
				openRTFWithDefaultEditorToolStripMenuItem = _OpenRTFWithDefaultEditorToolStripMenuItem;
				if (openRTFWithDefaultEditorToolStripMenuItem != null)
				{
					openRTFWithDefaultEditorToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem FinishedWithExternalEditorToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _FinishedWithExternalEditorToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = FinishedWithExternalEditorToolStripMenuItem_Click;
				ToolStripMenuItem finishedWithExternalEditorToolStripMenuItem = _FinishedWithExternalEditorToolStripMenuItem;
				if (finishedWithExternalEditorToolStripMenuItem != null)
				{
					finishedWithExternalEditorToolStripMenuItem.Click -= value2;
				}
				_FinishedWithExternalEditorToolStripMenuItem = value;
				finishedWithExternalEditorToolStripMenuItem = _FinishedWithExternalEditorToolStripMenuItem;
				if (finishedWithExternalEditorToolStripMenuItem != null)
				{
					finishedWithExternalEditorToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem LoadPreviousProjectOnStartupToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _LoadPreviousProjectOnStartupToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = LoadPreviousProjectOnStartupToolStripMenuItem_Click;
				ToolStripMenuItem loadPreviousProjectOnStartupToolStripMenuItem = _LoadPreviousProjectOnStartupToolStripMenuItem;
				if (loadPreviousProjectOnStartupToolStripMenuItem != null)
				{
					loadPreviousProjectOnStartupToolStripMenuItem.Click -= value2;
				}
				_LoadPreviousProjectOnStartupToolStripMenuItem = value;
				loadPreviousProjectOnStartupToolStripMenuItem = _LoadPreviousProjectOnStartupToolStripMenuItem;
				if (loadPreviousProjectOnStartupToolStripMenuItem != null)
				{
					loadPreviousProjectOnStartupToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator13")]
		internal virtual ToolStripSeparator ToolStripSeparator13
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem DailyBackupToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _DailyBackupToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = DailyBackupToolStripMenuItem_Click;
				ToolStripMenuItem dailyBackupToolStripMenuItem = _DailyBackupToolStripMenuItem;
				if (dailyBackupToolStripMenuItem != null)
				{
					dailyBackupToolStripMenuItem.Click -= value2;
				}
				_DailyBackupToolStripMenuItem = value;
				dailyBackupToolStripMenuItem = _DailyBackupToolStripMenuItem;
				if (dailyBackupToolStripMenuItem != null)
				{
					dailyBackupToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuExportSelectedChapters
		{
			[CompilerGenerated]
			get
			{
				return _mnuExportSelectedChapters;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ExportSelectedChaptersToolStripMenuItem_Click;
				ToolStripMenuItem mnuExportSelectedChapters = _mnuExportSelectedChapters;
				if (mnuExportSelectedChapters != null)
				{
					mnuExportSelectedChapters.Click -= value2;
				}
				_mnuExportSelectedChapters = value;
				mnuExportSelectedChapters = _mnuExportSelectedChapters;
				if (mnuExportSelectedChapters != null)
				{
					mnuExportSelectedChapters.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator14")]
		internal virtual ToolStripSeparator ToolStripSeparator14
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("colDesc")]
		internal virtual ColumnHeader colDesc
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("colDateTime")]
		internal virtual ColumnHeader colDateTime
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem mnuDailyWritingTargetToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _mnuDailyWritingTargetToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = DailyWritingTargetToolStripMenuItem_Click;
				ToolStripMenuItem mnuDailyWritingTargetToolStripMenuItem = _mnuDailyWritingTargetToolStripMenuItem;
				if (mnuDailyWritingTargetToolStripMenuItem != null)
				{
					mnuDailyWritingTargetToolStripMenuItem.Click -= value2;
				}
				_mnuDailyWritingTargetToolStripMenuItem = value;
				mnuDailyWritingTargetToolStripMenuItem = _mnuDailyWritingTargetToolStripMenuItem;
				if (mnuDailyWritingTargetToolStripMenuItem != null)
				{
					mnuDailyWritingTargetToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator15")]
		internal virtual ToolStripSeparator ToolStripSeparator15
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem OneDayWritingWorksheetToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _OneDayWritingWorksheetToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = OneDayWritingWorksheetToolStripMenuItem_Click;
				ToolStripMenuItem oneDayWritingWorksheetToolStripMenuItem = _OneDayWritingWorksheetToolStripMenuItem;
				if (oneDayWritingWorksheetToolStripMenuItem != null)
				{
					oneDayWritingWorksheetToolStripMenuItem.Click -= value2;
				}
				_OneDayWritingWorksheetToolStripMenuItem = value;
				oneDayWritingWorksheetToolStripMenuItem = _OneDayWritingWorksheetToolStripMenuItem;
				if (oneDayWritingWorksheetToolStripMenuItem != null)
				{
					oneDayWritingWorksheetToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem CreateTemplatetxtFileToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _CreateTemplatetxtFileToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = CreateTemplatetxtFileToolStripMenuItem_Click;
				ToolStripMenuItem createTemplatetxtFileToolStripMenuItem = _CreateTemplatetxtFileToolStripMenuItem;
				if (createTemplatetxtFileToolStripMenuItem != null)
				{
					createTemplatetxtFileToolStripMenuItem.Click -= value2;
				}
				_CreateTemplatetxtFileToolStripMenuItem = value;
				createTemplatetxtFileToolStripMenuItem = _CreateTemplatetxtFileToolStripMenuItem;
				if (createTemplatetxtFileToolStripMenuItem != null)
				{
					createTemplatetxtFileToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem RewriteAllLanguageFilesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _RewriteAllLanguageFilesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = RewriteAllLanguageFilesToolStripMenuItem_Click;
				ToolStripMenuItem rewriteAllLanguageFilesToolStripMenuItem = _RewriteAllLanguageFilesToolStripMenuItem;
				if (rewriteAllLanguageFilesToolStripMenuItem != null)
				{
					rewriteAllLanguageFilesToolStripMenuItem.Click -= value2;
				}
				_RewriteAllLanguageFilesToolStripMenuItem = value;
				rewriteAllLanguageFilesToolStripMenuItem = _RewriteAllLanguageFilesToolStripMenuItem;
				if (rewriteAllLanguageFilesToolStripMenuItem != null)
				{
					rewriteAllLanguageFilesToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ExportSelectedScenesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ExportSelectedScenesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ExportSelectedScenesToolStripMenuItem_Click;
				ToolStripMenuItem exportSelectedScenesToolStripMenuItem = _ExportSelectedScenesToolStripMenuItem;
				if (exportSelectedScenesToolStripMenuItem != null)
				{
					exportSelectedScenesToolStripMenuItem.Click -= value2;
				}
				_ExportSelectedScenesToolStripMenuItem = value;
				exportSelectedScenesToolStripMenuItem = _ExportSelectedScenesToolStripMenuItem;
				if (exportSelectedScenesToolStripMenuItem != null)
				{
					exportSelectedScenesToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual Button cmdSaveGoals
		{
			[CompilerGenerated]
			get
			{
				return _cmdSaveGoals;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdSaveGoals_Click;
				Button cmdSaveGoals = _cmdSaveGoals;
				if (cmdSaveGoals != null)
				{
					cmdSaveGoals.Click -= value2;
				}
				_cmdSaveGoals = value;
				cmdSaveGoals = _cmdSaveGoals;
				if (cmdSaveGoals != null)
				{
					cmdSaveGoals.Click += value2;
				}
			}
		}

		internal virtual Button cmdSaveSceneNotes
		{
			[CompilerGenerated]
			get
			{
				return _cmdSaveSceneNotes;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdSaveSceneNotes_Click;
				Button cmdSaveSceneNotes = _cmdSaveSceneNotes;
				if (cmdSaveSceneNotes != null)
				{
					cmdSaveSceneNotes.Click -= value2;
				}
				_cmdSaveSceneNotes = value;
				cmdSaveSceneNotes = _cmdSaveSceneNotes;
				if (cmdSaveSceneNotes != null)
				{
					cmdSaveSceneNotes.Click += value2;
				}
			}
		}

		internal virtual Button cmdSaveSceneDesc
		{
			[CompilerGenerated]
			get
			{
				return _cmdSaveSceneDesc;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdSaveSceneDesc_Click;
				Button cmdSaveSceneDesc = _cmdSaveSceneDesc;
				if (cmdSaveSceneDesc != null)
				{
					cmdSaveSceneDesc.Click -= value2;
				}
				_cmdSaveSceneDesc = value;
				cmdSaveSceneDesc = _cmdSaveSceneDesc;
				if (cmdSaveSceneDesc != null)
				{
					cmdSaveSceneDesc.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuChooseLang
		{
			[CompilerGenerated]
			get
			{
				return _mnuChooseLang;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuChooseLang_Click;
				ToolStripMenuItem mnuChooseLang = _mnuChooseLang;
				if (mnuChooseLang != null)
				{
					mnuChooseLang.Click -= value2;
				}
				_mnuChooseLang = value;
				mnuChooseLang = _mnuChooseLang;
				if (mnuChooseLang != null)
				{
					mnuChooseLang.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator17")]
		internal virtual ToolStripSeparator ToolStripSeparator17
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem ScenesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ScenesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ScenesToolStripMenuItem_Click;
				ToolStripMenuItem scenesToolStripMenuItem = _ScenesToolStripMenuItem;
				if (scenesToolStripMenuItem != null)
				{
					scenesToolStripMenuItem.Click -= value2;
				}
				_ScenesToolStripMenuItem = value;
				scenesToolStripMenuItem = _ScenesToolStripMenuItem;
				if (scenesToolStripMenuItem != null)
				{
					scenesToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator16")]
		internal virtual ToolStripSeparator ToolStripSeparator16
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem AppendYWriter5ProjectToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _AppendYWriter5ProjectToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = AppendYWriter5ProjectToolStripMenuItem_Click;
				ToolStripMenuItem appendYWriter5ProjectToolStripMenuItem = _AppendYWriter5ProjectToolStripMenuItem;
				if (appendYWriter5ProjectToolStripMenuItem != null)
				{
					appendYWriter5ProjectToolStripMenuItem.Click -= value2;
				}
				_AppendYWriter5ProjectToolStripMenuItem = value;
				appendYWriter5ProjectToolStripMenuItem = _AppendYWriter5ProjectToolStripMenuItem;
				if (appendYWriter5ProjectToolStripMenuItem != null)
				{
					appendYWriter5ProjectToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator6")]
		internal virtual ToolStripSeparator ToolStripSeparator6
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem QuickstartGuidePDFToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _QuickstartGuidePDFToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = QuickstartGuidePDFToolStripMenuItem_Click;
				ToolStripMenuItem quickstartGuidePDFToolStripMenuItem = _QuickstartGuidePDFToolStripMenuItem;
				if (quickstartGuidePDFToolStripMenuItem != null)
				{
					quickstartGuidePDFToolStripMenuItem.Click -= value2;
				}
				_QuickstartGuidePDFToolStripMenuItem = value;
				quickstartGuidePDFToolStripMenuItem = _QuickstartGuidePDFToolStripMenuItem;
				if (quickstartGuidePDFToolStripMenuItem != null)
				{
					quickstartGuidePDFToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem RecommendedBooksOnWritingToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _RecommendedBooksOnWritingToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = RecommendedBooksOnWritingToolStripMenuItem_Click;
				ToolStripMenuItem recommendedBooksOnWritingToolStripMenuItem = _RecommendedBooksOnWritingToolStripMenuItem;
				if (recommendedBooksOnWritingToolStripMenuItem != null)
				{
					recommendedBooksOnWritingToolStripMenuItem.Click -= value2;
				}
				_RecommendedBooksOnWritingToolStripMenuItem = value;
				recommendedBooksOnWritingToolStripMenuItem = _RecommendedBooksOnWritingToolStripMenuItem;
				if (recommendedBooksOnWritingToolStripMenuItem != null)
				{
					recommendedBooksOnWritingToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual TabPage TabProjectChar
		{
			[CompilerGenerated]
			get
			{
				return _TabProjectChar;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = TabProjectChar_Click;
				TabPage tabProjectChar = _TabProjectChar;
				if (tabProjectChar != null)
				{
					tabProjectChar.Click -= value2;
				}
				_TabProjectChar = value;
				tabProjectChar = _TabProjectChar;
				if (tabProjectChar != null)
				{
					tabProjectChar.Click += value2;
				}
			}
		}

		internal virtual ListView ListProjectCharacters
		{
			[CompilerGenerated]
			get
			{
				return _ListProjectCharacters;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ListProjectCharacters_DoubleClick;
				EventHandler value3 = ListProjectCharacters_SelectedIndexChanged;
				ListView listProjectCharacters = _ListProjectCharacters;
				if (listProjectCharacters != null)
				{
					listProjectCharacters.DoubleClick -= value2;
					listProjectCharacters.SelectedIndexChanged -= value3;
				}
				_ListProjectCharacters = value;
				listProjectCharacters = _ListProjectCharacters;
				if (listProjectCharacters != null)
				{
					listProjectCharacters.DoubleClick += value2;
					listProjectCharacters.SelectedIndexChanged += value3;
				}
			}
		}

		[field: AccessedThroughProperty("_ListItems_ColumnHeader_1")]
		internal virtual ColumnHeader _ListItems_ColumnHeader_1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("_ListItems_ColumnHeader_2")]
		internal virtual ColumnHeader _ListItems_ColumnHeader_2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ColumnHeader1")]
		internal virtual ColumnHeader ColumnHeader1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ColumnHeader2")]
		internal virtual ColumnHeader ColumnHeader2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ColumnHeader3")]
		internal virtual ColumnHeader ColumnHeader3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ColumnHeader4")]
		internal virtual ColumnHeader ColumnHeader4
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtCharDesc")]
		internal virtual TextBox txtCharDesc
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Splitter4")]
		internal virtual Splitter Splitter4
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TabProjectLoc")]
		internal virtual TabPage TabProjectLoc
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ListView ListProjectLocations
		{
			[CompilerGenerated]
			get
			{
				return _ListProjectLocations;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ListProjectLocations_DoubleClick;
				DragEventHandler value3 = ListProjectLocations_DragDrop;
				EventHandler value4 = ListProjectLocations_SelectedIndexChanged;
				ListView listProjectLocations = _ListProjectLocations;
				if (listProjectLocations != null)
				{
					listProjectLocations.DoubleClick -= value2;
					listProjectLocations.DragDrop -= value3;
					listProjectLocations.SelectedIndexChanged -= value4;
				}
				_ListProjectLocations = value;
				listProjectLocations = _ListProjectLocations;
				if (listProjectLocations != null)
				{
					listProjectLocations.DoubleClick += value2;
					listProjectLocations.DragDrop += value3;
					listProjectLocations.SelectedIndexChanged += value4;
				}
			}
		}

		[field: AccessedThroughProperty("ColumnHeader5")]
		internal virtual ColumnHeader ColumnHeader5
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ColumnHeader9")]
		internal virtual ColumnHeader ColumnHeader9
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ColumnHeader6")]
		internal virtual ColumnHeader ColumnHeader6
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Splitter5")]
		internal virtual Splitter Splitter5
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtLocDesc")]
		internal virtual TextBox txtLocDesc
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TabProjectItem")]
		internal virtual TabPage TabProjectItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ListView ListProjectItems
		{
			[CompilerGenerated]
			get
			{
				return _ListProjectItems;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ListProjectItems_DoubleClick;
				EventHandler value3 = ListProjectItems_SelectedIndexChanged;
				ListView listProjectItems = _ListProjectItems;
				if (listProjectItems != null)
				{
					listProjectItems.DoubleClick -= value2;
					listProjectItems.SelectedIndexChanged -= value3;
				}
				_ListProjectItems = value;
				listProjectItems = _ListProjectItems;
				if (listProjectItems != null)
				{
					listProjectItems.DoubleClick += value2;
					listProjectItems.SelectedIndexChanged += value3;
				}
			}
		}

		[field: AccessedThroughProperty("ColumnHeader7")]
		internal virtual ColumnHeader ColumnHeader7
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ColumnHeader8")]
		internal virtual ColumnHeader ColumnHeader8
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ColumnHeader10")]
		internal virtual ColumnHeader ColumnHeader10
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Splitter6")]
		internal virtual Splitter Splitter6
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtItemDesc")]
		internal virtual TextBox txtItemDesc
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem AddNewCharToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _AddNewCharToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = AddNewCharToolStripMenuItem_Click;
				ToolStripMenuItem addNewCharToolStripMenuItem = _AddNewCharToolStripMenuItem;
				if (addNewCharToolStripMenuItem != null)
				{
					addNewCharToolStripMenuItem.Click -= value2;
				}
				_AddNewCharToolStripMenuItem = value;
				addNewCharToolStripMenuItem = _AddNewCharToolStripMenuItem;
				if (addNewCharToolStripMenuItem != null)
				{
					addNewCharToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem AddNewLocToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _AddNewLocToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = AddNewLocToolStripMenuItem_Click;
				ToolStripMenuItem addNewLocToolStripMenuItem = _AddNewLocToolStripMenuItem;
				if (addNewLocToolStripMenuItem != null)
				{
					addNewLocToolStripMenuItem.Click -= value2;
				}
				_AddNewLocToolStripMenuItem = value;
				addNewLocToolStripMenuItem = _AddNewLocToolStripMenuItem;
				if (addNewLocToolStripMenuItem != null)
				{
					addNewLocToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem AddNewItemToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _AddNewItemToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = AddNewItemToolStripMenuItem_Click;
				ToolStripMenuItem addNewItemToolStripMenuItem = _AddNewItemToolStripMenuItem;
				if (addNewItemToolStripMenuItem != null)
				{
					addNewItemToolStripMenuItem.Click -= value2;
				}
				_AddNewItemToolStripMenuItem = value;
				addNewItemToolStripMenuItem = _AddNewItemToolStripMenuItem;
				if (addNewItemToolStripMenuItem != null)
				{
					addNewItemToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator18")]
		internal virtual ToolStripSeparator ToolStripSeparator18
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem tsmAddNewItem
		{
			[CompilerGenerated]
			get
			{
				return _tsmAddNewItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = AddNewToolStripMenuItem1_Click;
				ToolStripMenuItem tsmAddNewItem = _tsmAddNewItem;
				if (tsmAddNewItem != null)
				{
					tsmAddNewItem.Click -= value2;
				}
				_tsmAddNewItem = value;
				tsmAddNewItem = _tsmAddNewItem;
				if (tsmAddNewItem != null)
				{
					tsmAddNewItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem AddNewToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _AddNewToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = AddNewToolStripMenuItem1_Click;
				ToolStripMenuItem addNewToolStripMenuItem = _AddNewToolStripMenuItem;
				if (addNewToolStripMenuItem != null)
				{
					addNewToolStripMenuItem.Click -= value2;
				}
				_AddNewToolStripMenuItem = value;
				addNewToolStripMenuItem = _AddNewToolStripMenuItem;
				if (addNewToolStripMenuItem != null)
				{
					addNewToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ContextMenuStrip ctxListProjectChar
		{
			[CompilerGenerated]
			get
			{
				return _ctxListProjectChar;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				CancelEventHandler value2 = ctxListProjectChar_Opening;
				ContextMenuStrip ctxListProjectChar = _ctxListProjectChar;
				if (ctxListProjectChar != null)
				{
					ctxListProjectChar.Opening -= value2;
				}
				_ctxListProjectChar = value;
				ctxListProjectChar = _ctxListProjectChar;
				if (ctxListProjectChar != null)
				{
					ctxListProjectChar.Opening += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem AddNewCharToProject
		{
			[CompilerGenerated]
			get
			{
				return _AddNewCharToProject;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = AddNewCharToolStripMenuItem_Click;
				ToolStripMenuItem addNewCharToProject = _AddNewCharToProject;
				if (addNewCharToProject != null)
				{
					addNewCharToProject.Click -= value2;
				}
				_AddNewCharToProject = value;
				addNewCharToProject = _AddNewCharToProject;
				if (addNewCharToProject != null)
				{
					addNewCharToProject.Click += value2;
				}
			}
		}

		internal virtual ContextMenuStrip ctxListProjectLoc
		{
			[CompilerGenerated]
			get
			{
				return _ctxListProjectLoc;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				CancelEventHandler value2 = ctxListProjectLoc_Opening;
				ContextMenuStrip ctxListProjectLoc = _ctxListProjectLoc;
				if (ctxListProjectLoc != null)
				{
					ctxListProjectLoc.Opening -= value2;
				}
				_ctxListProjectLoc = value;
				ctxListProjectLoc = _ctxListProjectLoc;
				if (ctxListProjectLoc != null)
				{
					ctxListProjectLoc.Opening += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem AddNewLocationToProject
		{
			[CompilerGenerated]
			get
			{
				return _AddNewLocationToProject;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = AddNewLocToolStripMenuItem_Click;
				ToolStripMenuItem addNewLocationToProject = _AddNewLocationToProject;
				if (addNewLocationToProject != null)
				{
					addNewLocationToProject.Click -= value2;
				}
				_AddNewLocationToProject = value;
				addNewLocationToProject = _AddNewLocationToProject;
				if (addNewLocationToProject != null)
				{
					addNewLocationToProject.Click += value2;
				}
			}
		}

		internal virtual ContextMenuStrip ctxListProjectItem
		{
			[CompilerGenerated]
			get
			{
				return _ctxListProjectItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				CancelEventHandler value2 = ctxListProjectItem_Opening;
				ContextMenuStrip ctxListProjectItem = _ctxListProjectItem;
				if (ctxListProjectItem != null)
				{
					ctxListProjectItem.Opening -= value2;
				}
				_ctxListProjectItem = value;
				ctxListProjectItem = _ctxListProjectItem;
				if (ctxListProjectItem != null)
				{
					ctxListProjectItem.Opening += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem AddNewItemToProject
		{
			[CompilerGenerated]
			get
			{
				return _AddNewItemToProject;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = AddNewItemToolStripMenuItem_Click;
				ToolStripMenuItem addNewItemToProject = _AddNewItemToProject;
				if (addNewItemToProject != null)
				{
					addNewItemToProject.Click -= value2;
				}
				_AddNewItemToProject = value;
				addNewItemToProject = _AddNewItemToProject;
				if (addNewItemToProject != null)
				{
					addNewItemToProject.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem CheckForBETAVersionToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _CheckForBETAVersionToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = CheckForBETAVersionToolStripMenuItem_Click;
				ToolStripMenuItem checkForBETAVersionToolStripMenuItem = _CheckForBETAVersionToolStripMenuItem;
				if (checkForBETAVersionToolStripMenuItem != null)
				{
					checkForBETAVersionToolStripMenuItem.Click -= value2;
				}
				_CheckForBETAVersionToolStripMenuItem = value;
				checkForBETAVersionToolStripMenuItem = _CheckForBETAVersionToolStripMenuItem;
				if (checkForBETAVersionToolStripMenuItem != null)
				{
					checkForBETAVersionToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual Timer TimerFillCharlist
		{
			[CompilerGenerated]
			get
			{
				return _TimerFillCharlist;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = TimerFillCharlist_Tick;
				Timer timerFillCharlist = _TimerFillCharlist;
				if (timerFillCharlist != null)
				{
					timerFillCharlist.Tick -= value2;
				}
				_TimerFillCharlist = value;
				timerFillCharlist = _TimerFillCharlist;
				if (timerFillCharlist != null)
				{
					timerFillCharlist.Tick += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuSceneGrid
		{
			[CompilerGenerated]
			get
			{
				return _mnuSceneGrid;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = DisplaySceneGridToolStripMenuItem_Click;
				ToolStripMenuItem mnuSceneGrid = _mnuSceneGrid;
				if (mnuSceneGrid != null)
				{
					mnuSceneGrid.Click -= value2;
				}
				_mnuSceneGrid = value;
				mnuSceneGrid = _mnuSceneGrid;
				if (mnuSceneGrid != null)
				{
					mnuSceneGrid.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator21")]
		internal virtual ToolStripSeparator ToolStripSeparator21
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator19")]
		internal virtual ToolStripSeparator ToolStripSeparator19
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator20")]
		internal virtual ToolStripSeparator ToolStripSeparator20
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("SynopsisToolStripMenuItem")]
		internal virtual ToolStripMenuItem SynopsisToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator23")]
		internal virtual ToolStripSeparator ToolStripSeparator23
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator24")]
		internal virtual ToolStripSeparator ToolStripSeparator24
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem PrintAllNotesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _PrintAllNotesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = PrintAllNotesToolStripMenuItem_Click;
				ToolStripMenuItem printAllNotesToolStripMenuItem = _PrintAllNotesToolStripMenuItem;
				if (printAllNotesToolStripMenuItem != null)
				{
					printAllNotesToolStripMenuItem.Click -= value2;
				}
				_PrintAllNotesToolStripMenuItem = value;
				printAllNotesToolStripMenuItem = _PrintAllNotesToolStripMenuItem;
				if (printAllNotesToolStripMenuItem != null)
				{
					printAllNotesToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator25")]
		internal virtual ToolStripSeparator ToolStripSeparator25
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem PrintScenesPerItemToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _PrintScenesPerItemToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = PrintScenesPerItemToolStripMenuItem_Click;
				ToolStripMenuItem printScenesPerItemToolStripMenuItem = _PrintScenesPerItemToolStripMenuItem;
				if (printScenesPerItemToolStripMenuItem != null)
				{
					printScenesPerItemToolStripMenuItem.Click -= value2;
				}
				_PrintScenesPerItemToolStripMenuItem = value;
				printScenesPerItemToolStripMenuItem = _PrintScenesPerItemToolStripMenuItem;
				if (printScenesPerItemToolStripMenuItem != null)
				{
					printScenesPerItemToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem PrintScenesPerLocationToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _PrintScenesPerLocationToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = PrintScenesPerLocationToolStripMenuItem_Click;
				ToolStripMenuItem printScenesPerLocationToolStripMenuItem = _PrintScenesPerLocationToolStripMenuItem;
				if (printScenesPerLocationToolStripMenuItem != null)
				{
					printScenesPerLocationToolStripMenuItem.Click -= value2;
				}
				_PrintScenesPerLocationToolStripMenuItem = value;
				printScenesPerLocationToolStripMenuItem = _PrintScenesPerLocationToolStripMenuItem;
				if (printScenesPerLocationToolStripMenuItem != null)
				{
					printScenesPerLocationToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem PrintScenesPerCharacterToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _PrintScenesPerCharacterToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = PrintScenesPerCharacterToolStripMenuItem_Click;
				ToolStripMenuItem printScenesPerCharacterToolStripMenuItem = _PrintScenesPerCharacterToolStripMenuItem;
				if (printScenesPerCharacterToolStripMenuItem != null)
				{
					printScenesPerCharacterToolStripMenuItem.Click -= value2;
				}
				_PrintScenesPerCharacterToolStripMenuItem = value;
				printScenesPerCharacterToolStripMenuItem = _PrintScenesPerCharacterToolStripMenuItem;
				if (printScenesPerCharacterToolStripMenuItem != null)
				{
					printScenesPerCharacterToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem DeleteOrphanScenesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _DeleteOrphanScenesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = DeleteOrphanScenesToolStripMenuItem_Click;
				ToolStripMenuItem deleteOrphanScenesToolStripMenuItem = _DeleteOrphanScenesToolStripMenuItem;
				if (deleteOrphanScenesToolStripMenuItem != null)
				{
					deleteOrphanScenesToolStripMenuItem.Click -= value2;
				}
				_DeleteOrphanScenesToolStripMenuItem = value;
				deleteOrphanScenesToolStripMenuItem = _DeleteOrphanScenesToolStripMenuItem;
				if (deleteOrphanScenesToolStripMenuItem != null)
				{
					deleteOrphanScenesToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ColumnHeader11")]
		internal virtual ColumnHeader ColumnHeader11
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem TriggerErrorToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _TriggerErrorToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = TriggerErrorToolStripMenuItem_Click;
				ToolStripMenuItem triggerErrorToolStripMenuItem = _TriggerErrorToolStripMenuItem;
				if (triggerErrorToolStripMenuItem != null)
				{
					triggerErrorToolStripMenuItem.Click -= value2;
				}
				_TriggerErrorToolStripMenuItem = value;
				triggerErrorToolStripMenuItem = _TriggerErrorToolStripMenuItem;
				if (triggerErrorToolStripMenuItem != null)
				{
					triggerErrorToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem OpenSettingsFolderToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _OpenSettingsFolderToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = OpenSettingsFolderToolStripMenuItem_Click;
				ToolStripMenuItem openSettingsFolderToolStripMenuItem = _OpenSettingsFolderToolStripMenuItem;
				if (openSettingsFolderToolStripMenuItem != null)
				{
					openSettingsFolderToolStripMenuItem.Click -= value2;
				}
				_OpenSettingsFolderToolStripMenuItem = value;
				openSettingsFolderToolStripMenuItem = _OpenSettingsFolderToolStripMenuItem;
				if (openSettingsFolderToolStripMenuItem != null)
				{
					openSettingsFolderToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem SetReportWidthToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _SetReportWidthToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = SetReportWidthToolStripMenuItem_Click;
				ToolStripMenuItem setReportWidthToolStripMenuItem = _SetReportWidthToolStripMenuItem;
				if (setReportWidthToolStripMenuItem != null)
				{
					setReportWidthToolStripMenuItem.Click -= value2;
				}
				_SetReportWidthToolStripMenuItem = value;
				setReportWidthToolStripMenuItem = _SetReportWidthToolStripMenuItem;
				if (setReportWidthToolStripMenuItem != null)
				{
					setReportWidthToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem AutomaticallyAddItemsToScenesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _AutomaticallyAddItemsToScenesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = AutomaticallyAddItemsToScenesToolStripMenuItem_Click;
				ToolStripMenuItem automaticallyAddItemsToScenesToolStripMenuItem = _AutomaticallyAddItemsToScenesToolStripMenuItem;
				if (automaticallyAddItemsToScenesToolStripMenuItem != null)
				{
					automaticallyAddItemsToScenesToolStripMenuItem.Click -= value2;
				}
				_AutomaticallyAddItemsToScenesToolStripMenuItem = value;
				automaticallyAddItemsToScenesToolStripMenuItem = _AutomaticallyAddItemsToScenesToolStripMenuItem;
				if (automaticallyAddItemsToScenesToolStripMenuItem != null)
				{
					automaticallyAddItemsToScenesToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem AutomaticallyAddLocationsToScenesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _AutomaticallyAddLocationsToScenesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = AutomaticallyAddLocationsToScenesToolStripMenuItem_Click;
				ToolStripMenuItem automaticallyAddLocationsToScenesToolStripMenuItem = _AutomaticallyAddLocationsToScenesToolStripMenuItem;
				if (automaticallyAddLocationsToScenesToolStripMenuItem != null)
				{
					automaticallyAddLocationsToScenesToolStripMenuItem.Click -= value2;
				}
				_AutomaticallyAddLocationsToScenesToolStripMenuItem = value;
				automaticallyAddLocationsToScenesToolStripMenuItem = _AutomaticallyAddLocationsToScenesToolStripMenuItem;
				if (automaticallyAddLocationsToScenesToolStripMenuItem != null)
				{
					automaticallyAddLocationsToScenesToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem AutomaticallyAddCharactersToScenesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _AutomaticallyAddCharactersToScenesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = AutomaticallyAddCharactersToScenesToolStripMenuItem_Click;
				ToolStripMenuItem automaticallyAddCharactersToScenesToolStripMenuItem = _AutomaticallyAddCharactersToScenesToolStripMenuItem;
				if (automaticallyAddCharactersToScenesToolStripMenuItem != null)
				{
					automaticallyAddCharactersToScenesToolStripMenuItem.Click -= value2;
				}
				_AutomaticallyAddCharactersToScenesToolStripMenuItem = value;
				automaticallyAddCharactersToScenesToolStripMenuItem = _AutomaticallyAddCharactersToScenesToolStripMenuItem;
				if (automaticallyAddCharactersToScenesToolStripMenuItem != null)
				{
					automaticallyAddCharactersToScenesToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ToRTFToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ToRTFToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ToRTFToolStripMenuItem_Click;
				ToolStripMenuItem toRTFToolStripMenuItem = _ToRTFToolStripMenuItem;
				if (toRTFToolStripMenuItem != null)
				{
					toRTFToolStripMenuItem.Click -= value2;
				}
				_ToRTFToolStripMenuItem = value;
				toRTFToolStripMenuItem = _ToRTFToolStripMenuItem;
				if (toRTFToolStripMenuItem != null)
				{
					toRTFToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ToYWriter5FormatToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ToYWriter5FormatToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ToYWriter5FormatToolStripMenuItem_Click;
				ToolStripMenuItem toYWriter5FormatToolStripMenuItem = _ToYWriter5FormatToolStripMenuItem;
				if (toYWriter5FormatToolStripMenuItem != null)
				{
					toYWriter5FormatToolStripMenuItem.Click -= value2;
				}
				_ToYWriter5FormatToolStripMenuItem = value;
				toYWriter5FormatToolStripMenuItem = _ToYWriter5FormatToolStripMenuItem;
				if (toYWriter5FormatToolStripMenuItem != null)
				{
					toYWriter5FormatToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem PrintsScenesPerTagToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _PrintsScenesPerTagToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = PrintsScenesPerTagToolStripMenuItem_Click;
				ToolStripMenuItem printsScenesPerTagToolStripMenuItem = _PrintsScenesPerTagToolStripMenuItem;
				if (printsScenesPerTagToolStripMenuItem != null)
				{
					printsScenesPerTagToolStripMenuItem.Click -= value2;
				}
				_PrintsScenesPerTagToolStripMenuItem = value;
				printsScenesPerTagToolStripMenuItem = _PrintsScenesPerTagToolStripMenuItem;
				if (printsScenesPerTagToolStripMenuItem != null)
				{
					printsScenesPerTagToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem PrintCharactersPerTagToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _PrintCharactersPerTagToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = PrintCharactersPerTagToolStripMenuItem_Click;
				ToolStripMenuItem printCharactersPerTagToolStripMenuItem = _PrintCharactersPerTagToolStripMenuItem;
				if (printCharactersPerTagToolStripMenuItem != null)
				{
					printCharactersPerTagToolStripMenuItem.Click -= value2;
				}
				_PrintCharactersPerTagToolStripMenuItem = value;
				printCharactersPerTagToolStripMenuItem = _PrintCharactersPerTagToolStripMenuItem;
				if (printCharactersPerTagToolStripMenuItem != null)
				{
					printCharactersPerTagToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem PrintLocationsPerTagToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _PrintLocationsPerTagToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = PrintLocationsPerTagToolStripMenuItem_Click;
				ToolStripMenuItem printLocationsPerTagToolStripMenuItem = _PrintLocationsPerTagToolStripMenuItem;
				if (printLocationsPerTagToolStripMenuItem != null)
				{
					printLocationsPerTagToolStripMenuItem.Click -= value2;
				}
				_PrintLocationsPerTagToolStripMenuItem = value;
				printLocationsPerTagToolStripMenuItem = _PrintLocationsPerTagToolStripMenuItem;
				if (printLocationsPerTagToolStripMenuItem != null)
				{
					printLocationsPerTagToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem PrintItemsPerTagToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _PrintItemsPerTagToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = PrintItemsPerTagToolStripMenuItem_Click;
				ToolStripMenuItem printItemsPerTagToolStripMenuItem = _PrintItemsPerTagToolStripMenuItem;
				if (printItemsPerTagToolStripMenuItem != null)
				{
					printItemsPerTagToolStripMenuItem.Click -= value2;
				}
				_PrintItemsPerTagToolStripMenuItem = value;
				printItemsPerTagToolStripMenuItem = _PrintItemsPerTagToolStripMenuItem;
				if (printItemsPerTagToolStripMenuItem != null)
				{
					printItemsPerTagToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("SetDateToolStripMenuItem")]
		internal virtual ToolStripMenuItem SetDateToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem RestoreAutobackupToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _RestoreAutobackupToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = RestoreAutobackupToolStripMenuItem_Click;
				ToolStripMenuItem restoreAutobackupToolStripMenuItem = _RestoreAutobackupToolStripMenuItem;
				if (restoreAutobackupToolStripMenuItem != null)
				{
					restoreAutobackupToolStripMenuItem.Click -= value2;
				}
				_RestoreAutobackupToolStripMenuItem = value;
				restoreAutobackupToolStripMenuItem = _RestoreAutobackupToolStripMenuItem;
				if (restoreAutobackupToolStripMenuItem != null)
				{
					restoreAutobackupToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem RemoveFormattingFromAllScenesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _RemoveFormattingFromAllScenesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = RemoveFormattingFromAllScenesToolStripMenuItem_Click;
				ToolStripMenuItem removeFormattingFromAllScenesToolStripMenuItem = _RemoveFormattingFromAllScenesToolStripMenuItem;
				if (removeFormattingFromAllScenesToolStripMenuItem != null)
				{
					removeFormattingFromAllScenesToolStripMenuItem.Click -= value2;
				}
				_RemoveFormattingFromAllScenesToolStripMenuItem = value;
				removeFormattingFromAllScenesToolStripMenuItem = _RemoveFormattingFromAllScenesToolStripMenuItem;
				if (removeFormattingFromAllScenesToolStripMenuItem != null)
				{
					removeFormattingFromAllScenesToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem PrintSceneListToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _PrintSceneListToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = PrintSceneListToolStripMenuItem_Click;
				ToolStripMenuItem printSceneListToolStripMenuItem = _PrintSceneListToolStripMenuItem;
				if (printSceneListToolStripMenuItem != null)
				{
					printSceneListToolStripMenuItem.Click -= value2;
				}
				_PrintSceneListToolStripMenuItem = value;
				printSceneListToolStripMenuItem = _PrintSceneListToolStripMenuItem;
				if (printSceneListToolStripMenuItem != null)
				{
					printSceneListToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem OpenProjectFolderToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _OpenProjectFolderToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = OpenProjectFolderToolStripMenuItem_Click;
				ToolStripMenuItem openProjectFolderToolStripMenuItem = _OpenProjectFolderToolStripMenuItem;
				if (openProjectFolderToolStripMenuItem != null)
				{
					openProjectFolderToolStripMenuItem.Click -= value2;
				}
				_OpenProjectFolderToolStripMenuItem = value;
				openProjectFolderToolStripMenuItem = _OpenProjectFolderToolStripMenuItem;
				if (openProjectFolderToolStripMenuItem != null)
				{
					openProjectFolderToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem tsmDailyLog
		{
			[CompilerGenerated]
			get
			{
				return _tsmDailyLog;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ToolStripMenuItem1_Click;
				ToolStripMenuItem tsmDailyLog = _tsmDailyLog;
				if (tsmDailyLog != null)
				{
					tsmDailyLog.Click -= value2;
				}
				_tsmDailyLog = value;
				tsmDailyLog = _tsmDailyLog;
				if (tsmDailyLog != null)
				{
					tsmDailyLog.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem NewNoteToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _NewNoteToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = NewNoteToolStripMenuItem_Click;
				ToolStripMenuItem newNoteToolStripMenuItem = _NewNoteToolStripMenuItem;
				if (newNoteToolStripMenuItem != null)
				{
					newNoteToolStripMenuItem.Click -= value2;
				}
				_NewNoteToolStripMenuItem = value;
				newNoteToolStripMenuItem = _NewNoteToolStripMenuItem;
				if (newNoteToolStripMenuItem != null)
				{
					newNoteToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator26")]
		internal virtual ToolStripSeparator ToolStripSeparator26
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("UseF5ToSwapForReplacementToolStripMenuItem")]
		internal virtual ToolStripMenuItem UseF5ToSwapForReplacementToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem YWriterWikiToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _YWriterWikiToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = YWriterWikiToolStripMenuItem_Click;
				ToolStripMenuItem yWriterWikiToolStripMenuItem = _YWriterWikiToolStripMenuItem;
				if (yWriterWikiToolStripMenuItem != null)
				{
					yWriterWikiToolStripMenuItem.Click -= value2;
				}
				_YWriterWikiToolStripMenuItem = value;
				yWriterWikiToolStripMenuItem = _YWriterWikiToolStripMenuItem;
				if (yWriterWikiToolStripMenuItem != null)
				{
					yWriterWikiToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem SetupBooksAndPartsToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _SetupBooksAndPartsToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = SetupBooksAndPartsToolStripMenuItem_Click;
				ToolStripMenuItem setupBooksAndPartsToolStripMenuItem = _SetupBooksAndPartsToolStripMenuItem;
				if (setupBooksAndPartsToolStripMenuItem != null)
				{
					setupBooksAndPartsToolStripMenuItem.Click -= value2;
				}
				_SetupBooksAndPartsToolStripMenuItem = value;
				setupBooksAndPartsToolStripMenuItem = _SetupBooksAndPartsToolStripMenuItem;
				if (setupBooksAndPartsToolStripMenuItem != null)
				{
					setupBooksAndPartsToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator27")]
		internal virtual ToolStripSeparator ToolStripSeparator27
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ComboBox cmbBooks
		{
			[CompilerGenerated]
			get
			{
				return _cmbBooks;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmbBooks_SelectedIndexChanged;
				ComboBox cmbBooks = _cmbBooks;
				if (cmbBooks != null)
				{
					cmbBooks.SelectedIndexChanged -= value2;
				}
				_cmbBooks = value;
				cmbBooks = _cmbBooks;
				if (cmbBooks != null)
				{
					cmbBooks.SelectedIndexChanged += value2;
				}
			}
		}

		[field: AccessedThroughProperty("tsmChapterReportsToolStripMenuItem")]
		internal virtual ToolStripMenuItem tsmChapterReportsToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem mnuPrintSelectedChapters
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintSelectedChapters;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrintSelectedChapters_Click;
				ToolStripMenuItem mnuPrintSelectedChapters = _mnuPrintSelectedChapters;
				if (mnuPrintSelectedChapters != null)
				{
					mnuPrintSelectedChapters.Click -= value2;
				}
				_mnuPrintSelectedChapters = value;
				mnuPrintSelectedChapters = _mnuPrintSelectedChapters;
				if (mnuPrintSelectedChapters != null)
				{
					mnuPrintSelectedChapters.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem mnuPrintChapterNotes
		{
			[CompilerGenerated]
			get
			{
				return _mnuPrintChapterNotes;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = mnuPrintChapterNotes_Click;
				ToolStripMenuItem mnuPrintChapterNotes = _mnuPrintChapterNotes;
				if (mnuPrintChapterNotes != null)
				{
					mnuPrintChapterNotes.Click -= value2;
				}
				_mnuPrintChapterNotes = value;
				mnuPrintChapterNotes = _mnuPrintChapterNotes;
				if (mnuPrintChapterNotes != null)
				{
					mnuPrintChapterNotes.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("tsmSceneReportsToolStripMenuItem")]
		internal virtual ToolStripMenuItem tsmSceneReportsToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("tsmCharReportsToolStripMenuItem")]
		internal virtual ToolStripMenuItem tsmCharReportsToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("tsmLocReportsToolStripMenuItem")]
		internal virtual ToolStripMenuItem tsmLocReportsToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem tsmItemReportsToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _tsmItemReportsToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsmItemReportsToolStripMenuItem_Click;
				ToolStripMenuItem tsmItemReportsToolStripMenuItem = _tsmItemReportsToolStripMenuItem;
				if (tsmItemReportsToolStripMenuItem != null)
				{
					tsmItemReportsToolStripMenuItem.Click -= value2;
				}
				_tsmItemReportsToolStripMenuItem = value;
				tsmItemReportsToolStripMenuItem = _tsmItemReportsToolStripMenuItem;
				if (tsmItemReportsToolStripMenuItem != null)
				{
					tsmItemReportsToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem RenumberScenesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _RenumberScenesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = RenumberScenesToolStripMenuItem_Click;
				ToolStripMenuItem renumberScenesToolStripMenuItem = _RenumberScenesToolStripMenuItem;
				if (renumberScenesToolStripMenuItem != null)
				{
					renumberScenesToolStripMenuItem.Click -= value2;
				}
				_RenumberScenesToolStripMenuItem = value;
				renumberScenesToolStripMenuItem = _RenumberScenesToolStripMenuItem;
				if (renumberScenesToolStripMenuItem != null)
				{
					renumberScenesToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem CombineSelectedScenesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _CombineSelectedScenesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = CombineSelectedScenesToolStripMenuItem_Click;
				ToolStripMenuItem combineSelectedScenesToolStripMenuItem = _CombineSelectedScenesToolStripMenuItem;
				if (combineSelectedScenesToolStripMenuItem != null)
				{
					combineSelectedScenesToolStripMenuItem.Click -= value2;
				}
				_CombineSelectedScenesToolStripMenuItem = value;
				combineSelectedScenesToolStripMenuItem = _CombineSelectedScenesToolStripMenuItem;
				if (combineSelectedScenesToolStripMenuItem != null)
				{
					combineSelectedScenesToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ManualGermanHTMLToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ManualGermanHTMLToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ManualGermanHTMLToolStripMenuItem_Click;
				ToolStripMenuItem manualGermanHTMLToolStripMenuItem = _ManualGermanHTMLToolStripMenuItem;
				if (manualGermanHTMLToolStripMenuItem != null)
				{
					manualGermanHTMLToolStripMenuItem.Click -= value2;
				}
				_ManualGermanHTMLToolStripMenuItem = value;
				manualGermanHTMLToolStripMenuItem = _ManualGermanHTMLToolStripMenuItem;
				if (manualGermanHTMLToolStripMenuItem != null)
				{
					manualGermanHTMLToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("tsmExportSingleChapter")]
		internal virtual ToolStripMenuItem tsmExportSingleChapter
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem ExportChapterToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ExportChapterToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ExportChapterToolStripMenuItem_Click;
				ToolStripMenuItem exportChapterToolStripMenuItem = _ExportChapterToolStripMenuItem;
				if (exportChapterToolStripMenuItem != null)
				{
					exportChapterToolStripMenuItem.Click -= value2;
				}
				_ExportChapterToolStripMenuItem = value;
				exportChapterToolStripMenuItem = _ExportChapterToolStripMenuItem;
				if (exportChapterToolStripMenuItem != null)
				{
					exportChapterToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ImportChapterToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ImportChapterToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ImportChapterToolStripMenuItem_Click;
				ToolStripMenuItem importChapterToolStripMenuItem = _ImportChapterToolStripMenuItem;
				if (importChapterToolStripMenuItem != null)
				{
					importChapterToolStripMenuItem.Click -= value2;
				}
				_ImportChapterToolStripMenuItem = value;
				importChapterToolStripMenuItem = _ImportChapterToolStripMenuItem;
				if (importChapterToolStripMenuItem != null)
				{
					importChapterToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ToEbookToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ToEbookToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ToEbookToolStripMenuItem_Click;
				ToolStripMenuItem toEbookToolStripMenuItem = _ToEbookToolStripMenuItem;
				if (toEbookToolStripMenuItem != null)
				{
					toEbookToolStripMenuItem.Click -= value2;
				}
				_ToEbookToolStripMenuItem = value;
				toEbookToolStripMenuItem = _ToEbookToolStripMenuItem;
				if (toEbookToolStripMenuItem != null)
				{
					toEbookToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem tsmCopyChapters
		{
			[CompilerGenerated]
			get
			{
				return _tsmCopyChapters;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsmCopyChapters_Click;
				ToolStripMenuItem tsmCopyChapters = _tsmCopyChapters;
				if (tsmCopyChapters != null)
				{
					tsmCopyChapters.Click -= value2;
				}
				_tsmCopyChapters = value;
				tsmCopyChapters = _tsmCopyChapters;
				if (tsmCopyChapters != null)
				{
					tsmCopyChapters.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem tsmPasteChapters
		{
			[CompilerGenerated]
			get
			{
				return _tsmPasteChapters;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsmPasteChapters_Click;
				ToolStripMenuItem tsmPasteChapters = _tsmPasteChapters;
				if (tsmPasteChapters != null)
				{
					tsmPasteChapters.Click -= value2;
				}
				_tsmPasteChapters = value;
				tsmPasteChapters = _tsmPasteChapters;
				if (tsmPasteChapters != null)
				{
					tsmPasteChapters.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator22")]
		internal virtual ToolStripSeparator ToolStripSeparator22
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator28")]
		internal virtual ToolStripSeparator ToolStripSeparator28
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem DuplicateWordsToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _DuplicateWordsToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = DuplicateWordsToolStripMenuItem_Click;
				ToolStripMenuItem duplicateWordsToolStripMenuItem = _DuplicateWordsToolStripMenuItem;
				if (duplicateWordsToolStripMenuItem != null)
				{
					duplicateWordsToolStripMenuItem.Click -= value2;
				}
				_DuplicateWordsToolStripMenuItem = value;
				duplicateWordsToolStripMenuItem = _DuplicateWordsToolStripMenuItem;
				if (duplicateWordsToolStripMenuItem != null)
				{
					duplicateWordsToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem tsbExportToLaTeX
		{
			[CompilerGenerated]
			get
			{
				return _tsbExportToLaTeX;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsbExportToLaTeX_Click;
				ToolStripMenuItem tsbExportToLaTeX = _tsbExportToLaTeX;
				if (tsbExportToLaTeX != null)
				{
					tsbExportToLaTeX.Click -= value2;
				}
				_tsbExportToLaTeX = value;
				tsbExportToLaTeX = _tsbExportToLaTeX;
				if (tsbExportToLaTeX != null)
				{
					tsbExportToLaTeX.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator29")]
		internal virtual ToolStripSeparator ToolStripSeparator29
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator30")]
		internal virtual ToolStripSeparator ToolStripSeparator30
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem KeyboardShortcutsToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _KeyboardShortcutsToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = KeyboardShortcutsToolStripMenuItem_Click;
				ToolStripMenuItem keyboardShortcutsToolStripMenuItem = _KeyboardShortcutsToolStripMenuItem;
				if (keyboardShortcutsToolStripMenuItem != null)
				{
					keyboardShortcutsToolStripMenuItem.Click -= value2;
				}
				_KeyboardShortcutsToolStripMenuItem = value;
				keyboardShortcutsToolStripMenuItem = _KeyboardShortcutsToolStripMenuItem;
				if (keyboardShortcutsToolStripMenuItem != null)
				{
					keyboardShortcutsToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSepLinks")]
		internal virtual ToolStripSeparator ToolStripSepLinks
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator32")]
		internal virtual ToolStripSeparator ToolStripSeparator32
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem ProjectNotesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ProjectNotesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ProjectNotesToolStripMenuItem_Click;
				ToolStripMenuItem projectNotesToolStripMenuItem = _ProjectNotesToolStripMenuItem;
				if (projectNotesToolStripMenuItem != null)
				{
					projectNotesToolStripMenuItem.Click -= value2;
				}
				_ProjectNotesToolStripMenuItem = value;
				projectNotesToolStripMenuItem = _ProjectNotesToolStripMenuItem;
				if (projectNotesToolStripMenuItem != null)
				{
					projectNotesToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem LaTeXHelpToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _LaTeXHelpToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = LaTeXHelpToolStripMenuItem_Click;
				ToolStripMenuItem laTeXHelpToolStripMenuItem = _LaTeXHelpToolStripMenuItem;
				if (laTeXHelpToolStripMenuItem != null)
				{
					laTeXHelpToolStripMenuItem.Click -= value2;
				}
				_LaTeXHelpToolStripMenuItem = value;
				laTeXHelpToolStripMenuItem = _LaTeXHelpToolStripMenuItem;
				if (laTeXHelpToolStripMenuItem != null)
				{
					laTeXHelpToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem EbookHelpToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _EbookHelpToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = EbookHelpToolStripMenuItem_Click;
				ToolStripMenuItem ebookHelpToolStripMenuItem = _EbookHelpToolStripMenuItem;
				if (ebookHelpToolStripMenuItem != null)
				{
					ebookHelpToolStripMenuItem.Click -= value2;
				}
				_EbookHelpToolStripMenuItem = value;
				ebookHelpToolStripMenuItem = _EbookHelpToolStripMenuItem;
				if (ebookHelpToolStripMenuItem != null)
				{
					ebookHelpToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem LikeYWriterOnFacebookToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _LikeYWriterOnFacebookToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = LikeYWriterOnFacebookToolStripMenuItem_Click;
				ToolStripMenuItem likeYWriterOnFacebookToolStripMenuItem = _LikeYWriterOnFacebookToolStripMenuItem;
				if (likeYWriterOnFacebookToolStripMenuItem != null)
				{
					likeYWriterOnFacebookToolStripMenuItem.Click -= value2;
				}
				_LikeYWriterOnFacebookToolStripMenuItem = value;
				likeYWriterOnFacebookToolStripMenuItem = _LikeYWriterOnFacebookToolStripMenuItem;
				if (likeYWriterOnFacebookToolStripMenuItem != null)
				{
					likeYWriterOnFacebookToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ctxScenesToClipboard
		{
			[CompilerGenerated]
			get
			{
				return _ctxScenesToClipboard;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxScenesToClipboard_Click;
				ToolStripMenuItem ctxScenesToClipboard = _ctxScenesToClipboard;
				if (ctxScenesToClipboard != null)
				{
					ctxScenesToClipboard.Click -= value2;
				}
				_ctxScenesToClipboard = value;
				ctxScenesToClipboard = _ctxScenesToClipboard;
				if (ctxScenesToClipboard != null)
				{
					ctxScenesToClipboard.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ctxPasteScenesFromClipboard
		{
			[CompilerGenerated]
			get
			{
				return _ctxPasteScenesFromClipboard;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ctxPasteScenesFromClipboard_Click;
				ToolStripMenuItem ctxPasteScenesFromClipboard = _ctxPasteScenesFromClipboard;
				if (ctxPasteScenesFromClipboard != null)
				{
					ctxPasteScenesFromClipboard.Click -= value2;
				}
				_ctxPasteScenesFromClipboard = value;
				ctxPasteScenesFromClipboard = _ctxPasteScenesFromClipboard;
				if (ctxPasteScenesFromClipboard != null)
				{
					ctxPasteScenesFromClipboard.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("CopyFirstLineToSceneTitleSelectedScenesToolStripMenuItem")]
		internal virtual ToolStripMenuItem CopyFirstLineToSceneTitleSelectedScenesToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem SelectedScenesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _SelectedScenesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = SelectedScenesToolStripMenuItem_Click;
				ToolStripMenuItem selectedScenesToolStripMenuItem = _SelectedScenesToolStripMenuItem;
				if (selectedScenesToolStripMenuItem != null)
				{
					selectedScenesToolStripMenuItem.Click -= value2;
				}
				_SelectedScenesToolStripMenuItem = value;
				selectedScenesToolStripMenuItem = _SelectedScenesToolStripMenuItem;
				if (selectedScenesToolStripMenuItem != null)
				{
					selectedScenesToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem SelectedChaptersToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _SelectedChaptersToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = SelectedChaptersToolStripMenuItem_Click;
				ToolStripMenuItem selectedChaptersToolStripMenuItem = _SelectedChaptersToolStripMenuItem;
				if (selectedChaptersToolStripMenuItem != null)
				{
					selectedChaptersToolStripMenuItem.Click -= value2;
				}
				_SelectedChaptersToolStripMenuItem = value;
				selectedChaptersToolStripMenuItem = _SelectedChaptersToolStripMenuItem;
				if (selectedChaptersToolStripMenuItem != null)
				{
					selectedChaptersToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem AllScenesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _AllScenesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = AllScenesToolStripMenuItem_Click;
				ToolStripMenuItem allScenesToolStripMenuItem = _AllScenesToolStripMenuItem;
				if (allScenesToolStripMenuItem != null)
				{
					allScenesToolStripMenuItem.Click -= value2;
				}
				_AllScenesToolStripMenuItem = value;
				allScenesToolStripMenuItem = _AllScenesToolStripMenuItem;
				if (allScenesToolStripMenuItem != null)
				{
					allScenesToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator33")]
		internal virtual ToolStripSeparator ToolStripSeparator33
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem HelpToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _HelpToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = HelpToolStripMenuItem_Click;
				ToolStripMenuItem helpToolStripMenuItem = _HelpToolStripMenuItem;
				if (helpToolStripMenuItem != null)
				{
					helpToolStripMenuItem.Click -= value2;
				}
				_HelpToolStripMenuItem = value;
				helpToolStripMenuItem = _HelpToolStripMenuItem;
				if (helpToolStripMenuItem != null)
				{
					helpToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem MarkAsStartOfMainMatterToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _MarkAsStartOfMainMatterToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = MarkAsStartOfMainMatterToolStripMenuItem_Click;
				ToolStripMenuItem markAsStartOfMainMatterToolStripMenuItem = _MarkAsStartOfMainMatterToolStripMenuItem;
				if (markAsStartOfMainMatterToolStripMenuItem != null)
				{
					markAsStartOfMainMatterToolStripMenuItem.Click -= value2;
				}
				_MarkAsStartOfMainMatterToolStripMenuItem = value;
				markAsStartOfMainMatterToolStripMenuItem = _MarkAsStartOfMainMatterToolStripMenuItem;
				if (markAsStartOfMainMatterToolStripMenuItem != null)
				{
					markAsStartOfMainMatterToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("tssProgress")]
		internal virtual ToolStripProgressBar tssProgress
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem SimonHaynesOnTwitterToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _SimonHaynesOnTwitterToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = SimonHaynesOnTwitterToolStripMenuItem_Click;
				ToolStripMenuItem simonHaynesOnTwitterToolStripMenuItem = _SimonHaynesOnTwitterToolStripMenuItem;
				if (simonHaynesOnTwitterToolStripMenuItem != null)
				{
					simonHaynesOnTwitterToolStripMenuItem.Click -= value2;
				}
				_SimonHaynesOnTwitterToolStripMenuItem = value;
				simonHaynesOnTwitterToolStripMenuItem = _SimonHaynesOnTwitterToolStripMenuItem;
				if (simonHaynesOnTwitterToolStripMenuItem != null)
				{
					simonHaynesOnTwitterToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem tsbCreateScenesAndChaptersFromScene
		{
			[CompilerGenerated]
			get
			{
				return _tsbCreateScenesAndChaptersFromScene;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = CreateOutlineFromSceneToolStripMenuItem_Click;
				ToolStripMenuItem tsbCreateScenesAndChaptersFromScene = _tsbCreateScenesAndChaptersFromScene;
				if (tsbCreateScenesAndChaptersFromScene != null)
				{
					tsbCreateScenesAndChaptersFromScene.Click -= value2;
				}
				_tsbCreateScenesAndChaptersFromScene = value;
				tsbCreateScenesAndChaptersFromScene = _tsbCreateScenesAndChaptersFromScene;
				if (tsbCreateScenesAndChaptersFromScene != null)
				{
					tsbCreateScenesAndChaptersFromScene.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ApplyOutlineToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ApplyOutlineToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ApplyOutlineToolStripMenuItem_Click;
				ToolStripMenuItem applyOutlineToolStripMenuItem = _ApplyOutlineToolStripMenuItem;
				if (applyOutlineToolStripMenuItem != null)
				{
					applyOutlineToolStripMenuItem.Click -= value2;
				}
				_ApplyOutlineToolStripMenuItem = value;
				applyOutlineToolStripMenuItem = _ApplyOutlineToolStripMenuItem;
				if (applyOutlineToolStripMenuItem != null)
				{
					applyOutlineToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ForceWordcountToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ForceWordcountToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ForceWordcountToolStripMenuItem_Click;
				ToolStripMenuItem forceWordcountToolStripMenuItem = _ForceWordcountToolStripMenuItem;
				if (forceWordcountToolStripMenuItem != null)
				{
					forceWordcountToolStripMenuItem.Click -= value2;
				}
				_ForceWordcountToolStripMenuItem = value;
				forceWordcountToolStripMenuItem = _ForceWordcountToolStripMenuItem;
				if (forceWordcountToolStripMenuItem != null)
				{
					forceWordcountToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem OpenContainingFolderToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _OpenContainingFolderToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = OpenContainingFolderToolStripMenuItem_Click;
				ToolStripMenuItem openContainingFolderToolStripMenuItem = _OpenContainingFolderToolStripMenuItem;
				if (openContainingFolderToolStripMenuItem != null)
				{
					openContainingFolderToolStripMenuItem.Click -= value2;
				}
				_OpenContainingFolderToolStripMenuItem = value;
				openContainingFolderToolStripMenuItem = _OpenContainingFolderToolStripMenuItem;
				if (openContainingFolderToolStripMenuItem != null)
				{
					openContainingFolderToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("colFiledate")]
		internal virtual ColumnHeader colFiledate
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem DuplicateThisSceneToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _DuplicateThisSceneToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = DuplicateThisSceneToolStripMenuItem_Click;
				ToolStripMenuItem duplicateThisSceneToolStripMenuItem = _DuplicateThisSceneToolStripMenuItem;
				if (duplicateThisSceneToolStripMenuItem != null)
				{
					duplicateThisSceneToolStripMenuItem.Click -= value2;
				}
				_DuplicateThisSceneToolStripMenuItem = value;
				duplicateThisSceneToolStripMenuItem = _DuplicateThisSceneToolStripMenuItem;
				if (duplicateThisSceneToolStripMenuItem != null)
				{
					duplicateThisSceneToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator34")]
		internal virtual ToolStripSeparator ToolStripSeparator34
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem tsmExportRTFChapters
		{
			[CompilerGenerated]
			get
			{
				return _tsmExportRTFChapters;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = tsmExportRTFChapters_Click;
				ToolStripMenuItem tsmExportRTFChapters = _tsmExportRTFChapters;
				if (tsmExportRTFChapters != null)
				{
					tsmExportRTFChapters.Click -= value2;
				}
				_tsmExportRTFChapters = value;
				tsmExportRTFChapters = _tsmExportRTFChapters;
				if (tsmExportRTFChapters != null)
				{
					tsmExportRTFChapters.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem RegisterToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _RegisterToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = RegisterToolStripMenuItem_Click;
				ToolStripMenuItem registerToolStripMenuItem = _RegisterToolStripMenuItem;
				if (registerToolStripMenuItem != null)
				{
					registerToolStripMenuItem.Click -= value2;
				}
				_RegisterToolStripMenuItem = value;
				registerToolStripMenuItem = _RegisterToolStripMenuItem;
				if (registerToolStripMenuItem != null)
				{
					registerToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator35")]
		internal virtual ToolStripSeparator ToolStripSeparator35
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator36")]
		internal virtual ToolStripSeparator ToolStripSeparator36
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem GlobalVariablesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _GlobalVariablesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = GlobalVariablesToolStripMenuItem_Click;
				ToolStripMenuItem globalVariablesToolStripMenuItem = _GlobalVariablesToolStripMenuItem;
				if (globalVariablesToolStripMenuItem != null)
				{
					globalVariablesToolStripMenuItem.Click -= value2;
				}
				_GlobalVariablesToolStripMenuItem = value;
				globalVariablesToolStripMenuItem = _GlobalVariablesToolStripMenuItem;
				if (globalVariablesToolStripMenuItem != null)
				{
					globalVariablesToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ProjectVariablesToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ProjectVariablesToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ProjectVariablesToolStripMenuItem_Click;
				ToolStripMenuItem projectVariablesToolStripMenuItem = _ProjectVariablesToolStripMenuItem;
				if (projectVariablesToolStripMenuItem != null)
				{
					projectVariablesToolStripMenuItem.Click -= value2;
				}
				_ProjectVariablesToolStripMenuItem = value;
				projectVariablesToolStripMenuItem = _ProjectVariablesToolStripMenuItem;
				if (projectVariablesToolStripMenuItem != null)
				{
					projectVariablesToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator37")]
		internal virtual ToolStripSeparator ToolStripSeparator37
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem ConfigureSMTPServerToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ConfigureSMTPServerToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ConfigureSMTPServerToolStripMenuItem_Click;
				ToolStripMenuItem configureSMTPServerToolStripMenuItem = _ConfigureSMTPServerToolStripMenuItem;
				if (configureSMTPServerToolStripMenuItem != null)
				{
					configureSMTPServerToolStripMenuItem.Click -= value2;
				}
				_ConfigureSMTPServerToolStripMenuItem = value;
				configureSMTPServerToolStripMenuItem = _ConfigureSMTPServerToolStripMenuItem;
				if (configureSMTPServerToolStripMenuItem != null)
				{
					configureSMTPServerToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem BackupToEmailToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _BackupToEmailToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = BackupToEmailToolStripMenuItem_Click;
				ToolStripMenuItem backupToEmailToolStripMenuItem = _BackupToEmailToolStripMenuItem;
				if (backupToEmailToolStripMenuItem != null)
				{
					backupToEmailToolStripMenuItem.Click -= value2;
				}
				_BackupToEmailToolStripMenuItem = value;
				backupToEmailToolStripMenuItem = _BackupToEmailToolStripMenuItem;
				if (backupToEmailToolStripMenuItem != null)
				{
					backupToEmailToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ConfigureRecipientEmailToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ConfigureRecipientEmailToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ConfigureRecipientEmailToolStripMenuItem_Click;
				ToolStripMenuItem configureRecipientEmailToolStripMenuItem = _ConfigureRecipientEmailToolStripMenuItem;
				if (configureRecipientEmailToolStripMenuItem != null)
				{
					configureRecipientEmailToolStripMenuItem.Click -= value2;
				}
				_ConfigureRecipientEmailToolStripMenuItem = value;
				configureRecipientEmailToolStripMenuItem = _ConfigureRecipientEmailToolStripMenuItem;
				if (configureRecipientEmailToolStripMenuItem != null)
				{
					configureRecipientEmailToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ToEbooktoChaptersToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ToEbooktoChaptersToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ToEbooktoChaptersToolStripMenuItem_Click;
				ToolStripMenuItem toEbooktoChaptersToolStripMenuItem = _ToEbooktoChaptersToolStripMenuItem;
				if (toEbooktoChaptersToolStripMenuItem != null)
				{
					toEbooktoChaptersToolStripMenuItem.Click -= value2;
				}
				_ToEbooktoChaptersToolStripMenuItem = value;
				toEbooktoChaptersToolStripMenuItem = _ToEbooktoChaptersToolStripMenuItem;
				if (toEbooktoChaptersToolStripMenuItem != null)
				{
					toEbooktoChaptersToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ExternalLinksToolStripMenuItem")]
		internal virtual ToolStripMenuItem ExternalLinksToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator31")]
		internal virtual ToolStripSeparator ToolStripSeparator31
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem EditCustomExportersToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _EditCustomExportersToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = EditCustomExportersToolStripMenuItem_Click;
				ToolStripMenuItem editCustomExportersToolStripMenuItem = _EditCustomExportersToolStripMenuItem;
				if (editCustomExportersToolStripMenuItem != null)
				{
					editCustomExportersToolStripMenuItem.Click -= value2;
				}
				_EditCustomExportersToolStripMenuItem = value;
				editCustomExportersToolStripMenuItem = _EditCustomExportersToolStripMenuItem;
				if (editCustomExportersToolStripMenuItem != null)
				{
					editCustomExportersToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator38")]
		internal virtual ToolStripSeparator ToolStripSeparator38
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem ConfigureAlternativeBackupFolderToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _ConfigureAlternativeBackupFolderToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ConfigureAlternativeBackupFolderToolStripMenuItem_Click;
				ToolStripMenuItem configureAlternativeBackupFolderToolStripMenuItem = _ConfigureAlternativeBackupFolderToolStripMenuItem;
				if (configureAlternativeBackupFolderToolStripMenuItem != null)
				{
					configureAlternativeBackupFolderToolStripMenuItem.Click -= value2;
				}
				_ConfigureAlternativeBackupFolderToolStripMenuItem = value;
				configureAlternativeBackupFolderToolStripMenuItem = _ConfigureAlternativeBackupFolderToolStripMenuItem;
				if (configureAlternativeBackupFolderToolStripMenuItem != null)
				{
					configureAlternativeBackupFolderToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem CollaborationToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _CollaborationToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = CollaborationToolStripMenuItem_Click;
				ToolStripMenuItem collaborationToolStripMenuItem = _CollaborationToolStripMenuItem;
				if (collaborationToolStripMenuItem != null)
				{
					collaborationToolStripMenuItem.Click -= value2;
				}
				_CollaborationToolStripMenuItem = value;
				collaborationToolStripMenuItem = _CollaborationToolStripMenuItem;
				if (collaborationToolStripMenuItem != null)
				{
					collaborationToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("RequestCopyOfProjectToolStripMenuItem")]
		internal virtual ToolStripMenuItem RequestCopyOfProjectToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("sepCollab")]
		internal virtual ToolStripSeparator sepCollab
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("tsbCollab")]
		internal virtual ToolStripSplitButton tsbCollab
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("tsbApplyCollabChanges")]
		internal virtual ToolStripMenuItem tsbApplyCollabChanges
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("tsbDeleteCollabChanges")]
		internal virtual ToolStripMenuItem tsbDeleteCollabChanges
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem StartServerToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _StartServerToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = StartServerToolStripMenuItem_Click;
				ToolStripMenuItem startServerToolStripMenuItem = _StartServerToolStripMenuItem;
				if (startServerToolStripMenuItem != null)
				{
					startServerToolStripMenuItem.Click -= value2;
				}
				_StartServerToolStripMenuItem = value;
				startServerToolStripMenuItem = _StartServerToolStripMenuItem;
				if (startServerToolStripMenuItem != null)
				{
					startServerToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ConnectToServerToolStripMenuItem")]
		internal virtual ToolStripMenuItem ConnectToServerToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator39")]
		internal virtual ToolStripSeparator ToolStripSeparator39
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem StopServerToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _StopServerToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = StopServerToolStripMenuItem_Click;
				ToolStripMenuItem stopServerToolStripMenuItem = _StopServerToolStripMenuItem;
				if (stopServerToolStripMenuItem != null)
				{
					stopServerToolStripMenuItem.Click -= value2;
				}
				_StopServerToolStripMenuItem = value;
				stopServerToolStripMenuItem = _StopServerToolStripMenuItem;
				if (stopServerToolStripMenuItem != null)
				{
					stopServerToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("ToolStripSeparator40")]
		internal virtual ToolStripSeparator ToolStripSeparator40
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Version6FilesToolStripMenuItem")]
		internal virtual ToolStripMenuItem Version6FilesToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem SaveAsYw6ProjectToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _SaveAsYw6ProjectToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = SaveAsYw6ProjectToolStripMenuItem_Click;
				ToolStripMenuItem saveAsYw6ProjectToolStripMenuItem = _SaveAsYw6ProjectToolStripMenuItem;
				if (saveAsYw6ProjectToolStripMenuItem != null)
				{
					saveAsYw6ProjectToolStripMenuItem.Click -= value2;
				}
				_SaveAsYw6ProjectToolStripMenuItem = value;
				saveAsYw6ProjectToolStripMenuItem = _SaveAsYw6ProjectToolStripMenuItem;
				if (saveAsYw6ProjectToolStripMenuItem != null)
				{
					saveAsYw6ProjectToolStripMenuItem.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem ImportWIPToV6
		{
			[CompilerGenerated]
			get
			{
				return _ImportWIPToV6;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ToolStripMenuItem2_Click;
				ToolStripMenuItem importWIPToV = _ImportWIPToV6;
				if (importWIPToV != null)
				{
					importWIPToV.Click -= value2;
				}
				_ImportWIPToV6 = value;
				importWIPToV = _ImportWIPToV6;
				if (importWIPToV != null)
				{
					importWIPToV.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem CreateEmptyV6
		{
			[CompilerGenerated]
			get
			{
				return _CreateEmptyV6;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = ToolStripMenuItem1_Click_1;
				ToolStripMenuItem createEmptyV = _CreateEmptyV6;
				if (createEmptyV != null)
				{
					createEmptyV.Click -= value2;
				}
				_CreateEmptyV6 = value;
				createEmptyV = _CreateEmptyV6;
				if (createEmptyV != null)
				{
					createEmptyV.Click += value2;
				}
			}
		}

		internal virtual ToolStripMenuItem WhatIsThisMenuForToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _WhatIsThisMenuForToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = WhatIsThisMenuForToolStripMenuItem_Click;
				ToolStripMenuItem whatIsThisMenuForToolStripMenuItem = _WhatIsThisMenuForToolStripMenuItem;
				if (whatIsThisMenuForToolStripMenuItem != null)
				{
					whatIsThisMenuForToolStripMenuItem.Click -= value2;
				}
				_WhatIsThisMenuForToolStripMenuItem = value;
				whatIsThisMenuForToolStripMenuItem = _WhatIsThisMenuForToolStripMenuItem;
				if (whatIsThisMenuForToolStripMenuItem != null)
				{
					whatIsThisMenuForToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("READTHISFIRSTToolStripMenuItem")]
		internal virtual ToolStripMenuItem READTHISFIRSTToolStripMenuItem
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolStripSeparator41")]
		internal virtual ToolStripSeparator ToolStripSeparator41
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual ToolStripMenuItem YWriterAndroidComingSoonToolStripMenuItem
		{
			[CompilerGenerated]
			get
			{
				return _YWriterAndroidComingSoonToolStripMenuItem;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = YWriterAndroidComingSoonToolStripMenuItem_Click;
				ToolStripMenuItem yWriterAndroidComingSoonToolStripMenuItem = _YWriterAndroidComingSoonToolStripMenuItem;
				if (yWriterAndroidComingSoonToolStripMenuItem != null)
				{
					yWriterAndroidComingSoonToolStripMenuItem.Click -= value2;
				}
				_YWriterAndroidComingSoonToolStripMenuItem = value;
				yWriterAndroidComingSoonToolStripMenuItem = _YWriterAndroidComingSoonToolStripMenuItem;
				if (yWriterAndroidComingSoonToolStripMenuItem != null)
				{
					yWriterAndroidComingSoonToolStripMenuItem.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("TableLayoutNoteBar")]
		internal virtual TableLayoutPanel TableLayoutNoteBar
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		protected virtual frmFind Find
		{
			[CompilerGenerated]
			get
			{
				return _Find;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				frmFind.DoFindEventHandler obj = Find_DoFind;
				frmFind.DoPreviousEventHandler obj2 = Find_DoPrevious;
				frmFind find = _Find;
				if (find != null)
				{
					find.DoFind -= obj;
					find.DoPrevious -= obj2;
				}
				_Find = value;
				find = _Find;
				if (find != null)
				{
					find.DoFind += obj;
					find.DoPrevious += obj2;
				}
			}
		}

		protected virtual frmSceneList ExternalSceneList
		{
			[CompilerGenerated]
			get
			{
				return _ExternalSceneList;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				frmSceneList.ClosedFormEventHandler obj = ExternalSceneList_ClosedForm;
				frmSceneList.EditSceneEventHandler obj2 = ExternalSceneList_EditScene;
				frmSceneList.MovedScenesEventHandler obj3 = ExternalSceneList_MovedScenes;
				frmSceneList externalSceneList = _ExternalSceneList;
				if (externalSceneList != null)
				{
					externalSceneList.ClosedForm -= obj;
					externalSceneList.EditScene -= obj2;
					externalSceneList.MovedScenes -= obj3;
				}
				_ExternalSceneList = value;
				externalSceneList = _ExternalSceneList;
				if (externalSceneList != null)
				{
					externalSceneList.ClosedForm += obj;
					externalSceneList.EditScene += obj2;
					externalSceneList.MovedScenes += obj3;
				}
			}
		}

		protected virtual frmStoryBoard Storyboard
		{
			[CompilerGenerated]
			get
			{
				return _Storyboard;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				frmStoryBoard.ClosedFormEventHandler obj = StoryBoard_ClosedForm;
				frmStoryBoard.EditSceneEventHandler obj2 = Storyboard_EditScene;
				frmStoryBoard storyboard = _Storyboard;
				if (storyboard != null)
				{
					storyboard.ClosedForm -= obj;
					storyboard.EditScene -= obj2;
				}
				_Storyboard = value;
				storyboard = _Storyboard;
				if (storyboard != null)
				{
					storyboard.ClosedForm += obj;
					storyboard.EditScene += obj2;
				}
			}
		}

		protected virtual frmUpdater Updater
		{
			[CompilerGenerated]
			get
			{
				return _Updater;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				frmUpdater.NewVersionAvailableEventHandler obj = Updater_NewVersionAvailable;
				frmUpdater.FinishedEventHandler obj2 = Updater_Finished;
				frmUpdater.StatusEventHandler obj3 = Updater_Status;
				frmUpdater.InstallFileEventHandler obj4 = Updater_InstallFile;
				frmUpdater updater = _Updater;
				if (updater != null)
				{
					updater.NewVersionAvailable -= obj;
					updater.Finished -= obj2;
					updater.Status -= obj3;
					updater.InstallFile -= obj4;
				}
				_Updater = value;
				updater = _Updater;
				if (updater != null)
				{
					updater.NewVersionAvailable += obj;
					updater.Finished += obj2;
					updater.Status += obj3;
					updater.InstallFile += obj4;
				}
			}
		}

		[DebuggerNonUserCode]
		public frmMain()
		{
			base.KeyDown += frmMain_KeyDown;
			base.Load += frmMain_Load;
			base.FormClosing += frmMain_FormClosing;
			base.KeyUp += frmMain_KeyUp;
			base.MouseClick += frmMain_MouseClick;
			cXml = new clsXml();
			cFill = new clsFillList();
			colEditors = new Collection();
			colSpareEditors = new Collection();
			mvarDisplayedSceneID = 0;
			mvarSelectedSceneID = 0;
			RTBHidden = new RichTextBox();
			GenEbookAndQuit = false;
			HighlightedChapter = new Rectangle(0, 0, 0, 0);
			HighlightedScene = new Rectangle(0, 0, 0, 0);
			HighlightedNote = new Rectangle(0, 0, 0, 0);
			RunOnExit = "";
			SearchString = "";
			SearchRegexFound = "";
			ProblemWordReplacement = "";
			SearchChapterIndex = -1;
			SearchSceneIndex = -1;
			SearchSceneID = 0;
			InitializeComponent();
		}

		[DebuggerNonUserCode]
		protected override void Dispose(bool Disposing)
		{
			if (Disposing && components != null)
			{
				components.Dispose();
			}
			base.Dispose(Disposing);
		}

		[System.Diagnostics.DebuggerStepThrough]
		private void InitializeComponent()
		{
			components = new System.ComponentModel.Container();
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(yWriter6.frmMain));
			ToolTip1 = new System.Windows.Forms.ToolTip(components);
			txtChapterDesc = new System.Windows.Forms.RichTextBox();
			txtDesc = new System.Windows.Forms.RichTextBox();
			txtBody = new System.Windows.Forms.RichTextBox();
			lblGoal = new System.Windows.Forms.Label();
			lblConflict = new System.Windows.Forms.Label();
			lblOutcome = new System.Windows.Forms.Label();
			txtSceneNotes = new System.Windows.Forms.RichTextBox();
			txtOutcome = new System.Windows.Forms.TextBox();
			txtConflict = new System.Windows.Forms.TextBox();
			txtGoal = new System.Windows.Forms.TextBox();
			ListChapters = new System.Windows.Forms.ListView();
			_ListChapters_ColumnHeader_1 = new System.Windows.Forms.ColumnHeader();
			_ListChapters_ColumnHeader_2 = new System.Windows.Forms.ColumnHeader();
			_ListChapters_ColumnHeader_3 = new System.Windows.Forms.ColumnHeader();
			_ListChapters_ColumnHeader_4 = new System.Windows.Forms.ColumnHeader();
			colDesc = new System.Windows.Forms.ColumnHeader();
			ctxChapters = new System.Windows.Forms.ContextMenuStrip(components);
			tsmCopyChapters = new System.Windows.Forms.ToolStripMenuItem();
			tsmPasteChapters = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator22 = new System.Windows.Forms.ToolStripSeparator();
			ctxChapNew = new System.Windows.Forms.ToolStripMenuItem();
			ctxChapEdit = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
			ctxChapToggleUsed = new System.Windows.Forms.ToolStripMenuItem();
			ctxChapToggleType = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator11 = new System.Windows.Forms.ToolStripSeparator();
			MarkAsStartOfMainMatterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ctxChapMarkMiddle = new System.Windows.Forms.ToolStripMenuItem();
			ctxChapMarkEnd = new System.Windows.Forms.ToolStripMenuItem();
			ListScenes = new System.Windows.Forms.ListView();
			colVP = new System.Windows.Forms.ColumnHeader();
			colWords = new System.Windows.Forms.ColumnHeader();
			colScene = new System.Windows.Forms.ColumnHeader();
			colStatus = new System.Windows.Forms.ColumnHeader();
			colAR = new System.Windows.Forms.ColumnHeader();
			colFilename = new System.Windows.Forms.ColumnHeader();
			colLetters = new System.Windows.Forms.ColumnHeader();
			colChar = new System.Windows.Forms.ColumnHeader();
			colLocations = new System.Windows.Forms.ColumnHeader();
			colItems = new System.Windows.Forms.ColumnHeader();
			colDateTime = new System.Windows.Forms.ColumnHeader();
			colFiledate = new System.Windows.Forms.ColumnHeader();
			ctxScenes = new System.Windows.Forms.ContextMenuStrip(components);
			ctxAddNewScene = new System.Windows.Forms.ToolStripMenuItem();
			ctxEditSelected = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator34 = new System.Windows.Forms.ToolStripSeparator();
			ctxScenesToClipboard = new System.Windows.Forms.ToolStripMenuItem();
			ctxPasteScenesFromClipboard = new System.Windows.Forms.ToolStripMenuItem();
			DuplicateThisSceneToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator12 = new System.Windows.Forms.ToolStripSeparator();
			OpenRTFWithDefaultEditorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			FinishedWithExternalEditorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			OpenContainingFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
			ctxSetStatus = new System.Windows.Forms.ToolStripMenuItem();
			SetDateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ctxToggleUsed = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
			mnuConvYW2Scn = new System.Windows.Forms.ToolStripMenuItem();
			ctxRemoveSelected = new System.Windows.Forms.ToolStripMenuItem();
			tsbCreateScenesAndChaptersFromScene = new System.Windows.Forms.ToolStripMenuItem();
			ListNotes = new System.Windows.Forms.ListView();
			_ListNotes_ColumnHeader_1 = new System.Windows.Forms.ColumnHeader();
			ctxNotes = new System.Windows.Forms.ContextMenuStrip(components);
			NewNoteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator26 = new System.Windows.Forms.ToolStripSeparator();
			PrintSelectedNotesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			PrintAllNotesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator24 = new System.Windows.Forms.ToolStripSeparator();
			DeleteNoteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			txtNoteEditor = new System.Windows.Forms.RichTextBox();
			TabControlScene = new System.Windows.Forms.TabControl();
			tabSceneContent = new System.Windows.Forms.TabPage();
			tabSceneDescription = new System.Windows.Forms.TabPage();
			cmdSaveSceneDesc = new System.Windows.Forms.Button();
			tabSceneCharacters = new System.Windows.Forms.TabPage();
			TableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
			ListCharAll = new System.Windows.Forms.ListView();
			ListCharCol1 = new System.Windows.Forms.ColumnHeader();
			ListCharCol2 = new System.Windows.Forms.ColumnHeader();
			ctxAllListsRC = new System.Windows.Forms.ContextMenuStrip(components);
			ctxAddToAllSel = new System.Windows.Forms.ToolStripMenuItem();
			ctxRemoveFromAllSel = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator18 = new System.Windows.Forms.ToolStripSeparator();
			tsmAddNewItem = new System.Windows.Forms.ToolStripMenuItem();
			ImageList2 = new System.Windows.Forms.ImageList(components);
			ListCharUsed = new System.Windows.Forms.ListView();
			ListChar0Col1 = new System.Windows.Forms.ColumnHeader();
			ListChar0Col2 = new System.Windows.Forms.ColumnHeader();
			ctxListsRC = new System.Windows.Forms.ContextMenuStrip(components);
			ctxSetVP = new System.Windows.Forms.ToolStripMenuItem();
			ctxRemoveFromScene = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
			ctxEditListItem = new System.Windows.Forms.ToolStripMenuItem();
			AddNewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			tabSceneLocations = new System.Windows.Forms.TabPage();
			TableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
			ListLocAll = new System.Windows.Forms.ListView();
			__ListLoc_1_ColumnHeader_1 = new System.Windows.Forms.ColumnHeader();
			ListLocUsed = new System.Windows.Forms.ListView();
			__ListLoc_0_ColumnHeader_1 = new System.Windows.Forms.ColumnHeader();
			tabSceneItems = new System.Windows.Forms.TabPage();
			TableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
			ListItemsAll = new System.Windows.Forms.ListView();
			__ListItems_1_ColumnHeader_1 = new System.Windows.Forms.ColumnHeader();
			ListItemsUsed = new System.Windows.Forms.ListView();
			__ListItems_0_ColumnHeader_1 = new System.Windows.Forms.ColumnHeader();
			tabSceneNotes = new System.Windows.Forms.TabPage();
			cmdSaveSceneNotes = new System.Windows.Forms.Button();
			tabSceneGoals = new System.Windows.Forms.TabPage();
			cmdSaveGoals = new System.Windows.Forms.Button();
			TableLayoutGoals = new System.Windows.Forms.TableLayoutPanel();
			MainMenu1 = new System.Windows.Forms.MenuStrip();
			mnuProject = new System.Windows.Forms.ToolStripMenuItem();
			Version6FilesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			WhatIsThisMenuForToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			READTHISFIRSTToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator41 = new System.Windows.Forms.ToolStripSeparator();
			CreateEmptyV6 = new System.Windows.Forms.ToolStripMenuItem();
			ImportWIPToV6 = new System.Windows.Forms.ToolStripMenuItem();
			SaveAsYw6ProjectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuNewProj = new System.Windows.Forms.ToolStripMenuItem();
			mnuProjectGen = new System.Windows.Forms.ToolStripMenuItem();
			pbarcreatetext = new System.Windows.Forms.ToolStripSeparator();
			mnuLoadProj = new System.Windows.Forms.ToolStripMenuItem();
			OpenProjectFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuOpenRecent = new System.Windows.Forms.ToolStripMenuItem();
			ImportFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuImportProject = new System.Windows.Forms.ToolStripMenuItem();
			mnuImportSceneFile = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
			mnuImportyWriter2 = new System.Windows.Forms.ToolStripMenuItem();
			mnuImportyWriter3 = new System.Windows.Forms.ToolStripMenuItem();
			mnuImportyWriter4 = new System.Windows.Forms.ToolStripMenuItem();
			ImportDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ScenesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ImportCharactersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ImportLocationsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ImportItemsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator16 = new System.Windows.Forms.ToolStripSeparator();
			AppendYWriter5ProjectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ApplyOutlineToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			pbart = new System.Windows.Forms.ToolStripSeparator();
			mnuPrintProject = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator25 = new System.Windows.Forms.ToolStripSeparator();
			mnuSaveProj = new System.Windows.Forms.ToolStripMenuItem();
			mnuSaveAs = new System.Windows.Forms.ToolStripMenuItem();
			mnuExportProj = new System.Windows.Forms.ToolStripMenuItem();
			mnuExportHTML = new System.Windows.Forms.ToolStripMenuItem();
			mnuCombineFiles = new System.Windows.Forms.ToolStripMenuItem();
			mnuExportToRTF = new System.Windows.Forms.ToolStripMenuItem();
			tsmExportRTFChapters = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator29 = new System.Windows.Forms.ToolStripSeparator();
			tsbExportToLaTeX = new System.Windows.Forms.ToolStripMenuItem();
			LaTeXHelpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator30 = new System.Windows.Forms.ToolStripSeparator();
			ToEbookToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToEbooktoChaptersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			EbookHelpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuExportNano = new System.Windows.Forms.ToolStripMenuItem();
			mnuExportOutline = new System.Windows.Forms.ToolStripMenuItem();
			mnuSaveSynopsis = new System.Windows.Forms.ToolStripMenuItem();
			mnuExportTimeline = new System.Windows.Forms.ToolStripMenuItem();
			mnuExportDesc = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator31 = new System.Windows.Forms.ToolStripSeparator();
			EditCustomExportersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuExportSelectedChapters = new System.Windows.Forms.ToolStripMenuItem();
			ToRTFToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToYWriter5FormatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ExportSelectedScenesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuExportData = new System.Windows.Forms.ToolStripMenuItem();
			tsmExportChar = new System.Windows.Forms.ToolStripMenuItem();
			tsmExportLocations = new System.Windows.Forms.ToolStripMenuItem();
			tsmExportItems = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator32 = new System.Windows.Forms.ToolStripSeparator();
			ProjectNotesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			pbarm = new System.Windows.Forms.ToolStripSeparator();
			mnuCloseProject = new System.Windows.Forms.ToolStripMenuItem();
			mnubar33 = new System.Windows.Forms.ToolStripSeparator();
			LoadPreviousProjectOnStartupToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuSettings = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
			mnuConfirmExit = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrint = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintWorkSched = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintOnStatus0 = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintOnStatus1 = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintOnStatus2 = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintOnStatus3 = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintOnStatus4 = new System.Windows.Forms.ToolStripMenuItem();
			SynopsisToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintSummary = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintSynopsis = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintFullSynopsis = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator15 = new System.Windows.Forms.ToolStripSeparator();
			mnuDailyWritingTargetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			OneDayWritingWorksheetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			SetReportWidthToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuSearch = new System.Windows.Forms.ToolStripMenuItem();
			mnuFind = new System.Windows.Forms.ToolStripMenuItem();
			cmdFindNext = new System.Windows.Forms.ToolStripMenuItem();
			mnuFindPrev = new System.Windows.Forms.ToolStripMenuItem();
			mnubar3 = new System.Windows.Forms.ToolStripSeparator();
			mnuGlobalReplace = new System.Windows.Forms.ToolStripMenuItem();
			pbarxz = new System.Windows.Forms.ToolStripSeparator();
			mnuNull = new System.Windows.Forms.ToolStripMenuItem();
			mnuPredefined = new System.Windows.Forms.ToolStripMenuItem();
			mnuFindAs = new System.Windows.Forms.ToolStripMenuItem();
			mnuFindLy = new System.Windows.Forms.ToolStripMenuItem();
			mnuFindIng = new System.Windows.Forms.ToolStripMenuItem();
			mnuFindThen = new System.Windows.Forms.ToolStripMenuItem();
			mnuFindTurned = new System.Windows.Forms.ToolStripMenuItem();
			mnuFindGlanced = new System.Windows.Forms.ToolStripMenuItem();
			mnuFindMuttered = new System.Windows.Forms.ToolStripMenuItem();
			mnuFindSuddenly = new System.Windows.Forms.ToolStripMenuItem();
			mnuFindLooked = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator28 = new System.Windows.Forms.ToolStripSeparator();
			DuplicateWordsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuUD = new System.Windows.Forms.ToolStripMenuItem();
			_mnuUDW_0 = new System.Windows.Forms.ToolStripMenuItem();
			UseF3ToFindNext = new System.Windows.Forms.ToolStripMenuItem();
			UseF5ToSwapForReplacementToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuChapters = new System.Windows.Forms.ToolStripMenuItem();
			mnuChapterNew = new System.Windows.Forms.ToolStripMenuItem();
			mnuChapterMultiNew = new System.Windows.Forms.ToolStripMenuItem();
			mnuEditChapter = new System.Windows.Forms.ToolStripMenuItem();
			pbardash = new System.Windows.Forms.ToolStripSeparator();
			mnuMarkEndBeginning = new System.Windows.Forms.ToolStripMenuItem();
			mnuMarkEndMiddle = new System.Windows.Forms.ToolStripMenuItem();
			mnuRenumber = new System.Windows.Forms.ToolStripMenuItem();
			mnuChapbar = new System.Windows.Forms.ToolStripSeparator();
			mnuMarkChaptersUnused = new System.Windows.Forms.ToolStripMenuItem();
			ToggleChapterOtherToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator();
			CombineSelectedChaptersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuRemoveChapter = new System.Windows.Forms.ToolStripMenuItem();
			SetupBooksAndPartsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator27 = new System.Windows.Forms.ToolStripSeparator();
			tsmChapterReportsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintSelectedChapters = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintChapterNotes = new System.Windows.Forms.ToolStripMenuItem();
			tsmExportSingleChapter = new System.Windows.Forms.ToolStripMenuItem();
			ExportChapterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ImportChapterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator33 = new System.Windows.Forms.ToolStripSeparator();
			HelpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuScene = new System.Windows.Forms.ToolStripMenuItem();
			mnuAddScene = new System.Windows.Forms.ToolStripMenuItem();
			mnuAddMultiScenes = new System.Windows.Forms.ToolStripMenuItem();
			mnuEditScene = new System.Windows.Forms.ToolStripMenuItem();
			pbarsc1 = new System.Windows.Forms.ToolStripSeparator();
			mnuSetStatus = new System.Windows.Forms.ToolStripMenuItem();
			mnuUsedUnused = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
			mnuSetAllSceneFont = new System.Windows.Forms.ToolStripMenuItem();
			RemoveFormattingFromAllScenesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			RenumberScenesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator();
			CombineSelectedScenesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuRemoveScene = new System.Windows.Forms.ToolStripMenuItem();
			DeleteDuplicateScenesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			DeleteOrphanScenesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator23 = new System.Windows.Forms.ToolStripSeparator();
			tsmSceneReportsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintScene = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintSceneNotes = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintSceneCards = new System.Windows.Forms.ToolStripMenuItem();
			PrintsScenesPerTagToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			PrintSceneListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			CopyFirstLineToSceneTitleSelectedScenesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			SelectedScenesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			SelectedChaptersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			AllScenesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuChar = new System.Windows.Forms.ToolStripMenuItem();
			AddNewCharToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuEditChar = new System.Windows.Forms.ToolStripMenuItem();
			mnuAddCharToScene = new System.Windows.Forms.ToolStripMenuItem();
			AutomaticallyAddCharactersToScenesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator14 = new System.Windows.Forms.ToolStripSeparator();
			mnuScenesPerCharacter = new System.Windows.Forms.ToolStripMenuItem();
			mnuWordsPerCharacter = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator21 = new System.Windows.Forms.ToolStripSeparator();
			tsmCharReportsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintChar = new System.Windows.Forms.ToolStripMenuItem();
			PrintScenesPerCharacterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			PrintCharactersPerTagToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuLocations = new System.Windows.Forms.ToolStripMenuItem();
			AddNewLocToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuAddLocation = new System.Windows.Forms.ToolStripMenuItem();
			mnuAddLocToCurrentScene = new System.Windows.Forms.ToolStripMenuItem();
			AutomaticallyAddLocationsToScenesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator19 = new System.Windows.Forms.ToolStripSeparator();
			tsmLocReportsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintLocationList = new System.Windows.Forms.ToolStripMenuItem();
			PrintScenesPerLocationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			PrintLocationsPerTagToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuItems = new System.Windows.Forms.ToolStripMenuItem();
			AddNewItemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuAddItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuAddItemToCurrentScene = new System.Windows.Forms.ToolStripMenuItem();
			AutomaticallyAddItemsToScenesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator20 = new System.Windows.Forms.ToolStripSeparator();
			tsmItemReportsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuPrintItemList = new System.Windows.Forms.ToolStripMenuItem();
			PrintScenesPerItemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			PrintItemsPerTagToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuTools = new System.Windows.Forms.ToolStripMenuItem();
			mnuStoryboard = new System.Windows.Forms.ToolStripMenuItem();
			mnuSceneList = new System.Windows.Forms.ToolStripMenuItem();
			mnuSceneGrid = new System.Windows.Forms.ToolStripMenuItem();
			mnuChart = new System.Windows.Forms.ToolStripMenuItem();
			mnuWordUsageCount = new System.Windows.Forms.ToolStripMenuItem();
			ForceWordcountToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator36 = new System.Windows.Forms.ToolStripSeparator();
			GlobalVariablesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ProjectVariablesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			Pbarnone = new System.Windows.Forms.ToolStripSeparator();
			mnuWordTarget = new System.Windows.Forms.ToolStripMenuItem();
			tsmDailyLog = new System.Windows.Forms.ToolStripMenuItem();
			sep1 = new System.Windows.Forms.ToolStripSeparator();
			mnuBackupMenu = new System.Windows.Forms.ToolStripMenuItem();
			mnuBackupProject = new System.Windows.Forms.ToolStripMenuItem();
			ConfigureAlternativeBackupFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator38 = new System.Windows.Forms.ToolStripSeparator();
			mnuSaveToSingleFile = new System.Windows.Forms.ToolStripMenuItem();
			mnuSetupAutobackup = new System.Windows.Forms.ToolStripMenuItem();
			mnuAutobackups = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator13 = new System.Windows.Forms.ToolStripSeparator();
			DailyBackupToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			RestoreAutobackupToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator10 = new System.Windows.Forms.ToolStripSeparator();
			ConfigureFTPSitesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			BackupToFTPToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator37 = new System.Windows.Forms.ToolStripSeparator();
			ConfigureSMTPServerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ConfigureRecipientEmailToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			BackupToEmailToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuDebugMenu = new System.Windows.Forms.ToolStripMenuItem();
			mnuCreateDebug = new System.Windows.Forms.ToolStripMenuItem();
			mnuViewLog = new System.Windows.Forms.ToolStripMenuItem();
			CheckForBETAVersionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			OpenSettingsFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			TriggerErrorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuUIFont = new System.Windows.Forms.ToolStripMenuItem();
			mnuUIFontSize = new System.Windows.Forms.ToolStripMenuItem();
			toolsbar = new System.Windows.Forms.ToolStripSeparator();
			CollaborationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			StartServerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			StopServerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator40 = new System.Windows.Forms.ToolStripSeparator();
			ConnectToServerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator39 = new System.Windows.Forms.ToolStripSeparator();
			RequestCopyOfProjectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			sepCollab = new System.Windows.Forms.ToolStripSeparator();
			mnuCheckVersion = new System.Windows.Forms.ToolStripMenuItem();
			mnuLocalise = new System.Windows.Forms.ToolStripMenuItem();
			mnuChooseLang = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator17 = new System.Windows.Forms.ToolStripSeparator();
			CreateTemplatetxtFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			RewriteAllLanguageFilesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuHelp = new System.Windows.Forms.ToolStripMenuItem();
			mnuAbout = new System.Windows.Forms.ToolStripMenuItem();
			RegisterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSeparator35 = new System.Windows.Forms.ToolStripSeparator();
			KeyboardShortcutsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			QuickstartGuidePDFToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuManual = new System.Windows.Forms.ToolStripMenuItem();
			ManualGermanHTMLToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			pbarhelp = new System.Windows.Forms.ToolStripSeparator();
			ExternalLinksToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuYWWebPage = new System.Windows.Forms.ToolStripMenuItem();
			LikeYWriterOnFacebookToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			SimonHaynesOnTwitterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			YWriterWikiToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			mnuGoogleGroup = new System.Windows.Forms.ToolStripMenuItem();
			ToolStripSepLinks = new System.Windows.Forms.ToolStripSeparator();
			mnuWritingArticles = new System.Windows.Forms.ToolStripMenuItem();
			RecommendedBooksOnWritingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			YWriterAndroidComingSoonToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			cmdDiscardProjectNote = new System.Windows.Forms.Button();
			cmdEditProjectNote = new System.Windows.Forms.Button();
			cmdSaveProjectNote = new System.Windows.Forms.Button();
			cmdNewProjectNote = new System.Windows.Forms.Button();
			txtNoteTitle = new System.Windows.Forms.TextBox();
			txtSceneTitle = new System.Windows.Forms.TextBox();
			TimerUpdate = new System.Windows.Forms.Timer(components);
			TabControlMain = new System.Windows.Forms.TabControl();
			TabChapterScenes = new System.Windows.Forms.TabPage();
			Panel2 = new System.Windows.Forms.Panel();
			Splitter2 = new System.Windows.Forms.Splitter();
			tabProjectNotes = new System.Windows.Forms.TabPage();
			TableLayoutNoteBar = new System.Windows.Forms.TableLayoutPanel();
			Splitter3 = new System.Windows.Forms.Splitter();
			TabProjectChar = new System.Windows.Forms.TabPage();
			ListProjectCharacters = new System.Windows.Forms.ListView();
			_ListItems_ColumnHeader_1 = new System.Windows.Forms.ColumnHeader();
			_ListItems_ColumnHeader_2 = new System.Windows.Forms.ColumnHeader();
			ColumnHeader1 = new System.Windows.Forms.ColumnHeader();
			ColumnHeader2 = new System.Windows.Forms.ColumnHeader();
			ColumnHeader3 = new System.Windows.Forms.ColumnHeader();
			ColumnHeader4 = new System.Windows.Forms.ColumnHeader();
			ColumnHeader11 = new System.Windows.Forms.ColumnHeader();
			ctxListProjectChar = new System.Windows.Forms.ContextMenuStrip(components);
			AddNewCharToProject = new System.Windows.Forms.ToolStripMenuItem();
			Splitter4 = new System.Windows.Forms.Splitter();
			txtCharDesc = new System.Windows.Forms.TextBox();
			TabProjectLoc = new System.Windows.Forms.TabPage();
			ListProjectLocations = new System.Windows.Forms.ListView();
			ColumnHeader5 = new System.Windows.Forms.ColumnHeader();
			ColumnHeader9 = new System.Windows.Forms.ColumnHeader();
			ColumnHeader6 = new System.Windows.Forms.ColumnHeader();
			ctxListProjectLoc = new System.Windows.Forms.ContextMenuStrip(components);
			AddNewLocationToProject = new System.Windows.Forms.ToolStripMenuItem();
			Splitter5 = new System.Windows.Forms.Splitter();
			txtLocDesc = new System.Windows.Forms.TextBox();
			TabProjectItem = new System.Windows.Forms.TabPage();
			ListProjectItems = new System.Windows.Forms.ListView();
			ColumnHeader7 = new System.Windows.Forms.ColumnHeader();
			ColumnHeader8 = new System.Windows.Forms.ColumnHeader();
			ColumnHeader10 = new System.Windows.Forms.ColumnHeader();
			ctxListProjectItem = new System.Windows.Forms.ContextMenuStrip(components);
			AddNewItemToProject = new System.Windows.Forms.ToolStripMenuItem();
			Splitter6 = new System.Windows.Forms.Splitter();
			txtItemDesc = new System.Windows.Forms.TextBox();
			Panel1 = new System.Windows.Forms.Panel();
			SplitContainer1 = new System.Windows.Forms.SplitContainer();
			cmbBooks = new System.Windows.Forms.ComboBox();
			Splitter1 = new System.Windows.Forms.Splitter();
			StatusStrip1 = new System.Windows.Forms.StatusStrip();
			tssVersion = new System.Windows.Forms.ToolStripStatusLabel();
			tssBackupButton = new System.Windows.Forms.ToolStripSplitButton();
			tssWordcount = new System.Windows.Forms.ToolStripStatusLabel();
			tssPrintProgress = new System.Windows.Forms.ToolStripStatusLabel();
			tssStatus = new System.Windows.Forms.ToolStripStatusLabel();
			tssProgress = new System.Windows.Forms.ToolStripProgressBar();
			tsbCollab = new System.Windows.Forms.ToolStripSplitButton();
			tsbApplyCollabChanges = new System.Windows.Forms.ToolStripMenuItem();
			tsbDeleteCollabChanges = new System.Windows.Forms.ToolStripMenuItem();
			TimerFillCharlist = new System.Windows.Forms.Timer(components);
			ctxChapters.SuspendLayout();
			ctxScenes.SuspendLayout();
			ctxNotes.SuspendLayout();
			TabControlScene.SuspendLayout();
			tabSceneContent.SuspendLayout();
			tabSceneDescription.SuspendLayout();
			tabSceneCharacters.SuspendLayout();
			TableLayoutPanel4.SuspendLayout();
			ctxAllListsRC.SuspendLayout();
			ctxListsRC.SuspendLayout();
			tabSceneLocations.SuspendLayout();
			TableLayoutPanel2.SuspendLayout();
			tabSceneItems.SuspendLayout();
			TableLayoutPanel1.SuspendLayout();
			tabSceneNotes.SuspendLayout();
			tabSceneGoals.SuspendLayout();
			TableLayoutGoals.SuspendLayout();
			MainMenu1.SuspendLayout();
			TabControlMain.SuspendLayout();
			TabChapterScenes.SuspendLayout();
			Panel2.SuspendLayout();
			tabProjectNotes.SuspendLayout();
			TableLayoutNoteBar.SuspendLayout();
			TabProjectChar.SuspendLayout();
			ctxListProjectChar.SuspendLayout();
			TabProjectLoc.SuspendLayout();
			ctxListProjectLoc.SuspendLayout();
			TabProjectItem.SuspendLayout();
			ctxListProjectItem.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)SplitContainer1).BeginInit();
			SplitContainer1.Panel1.SuspendLayout();
			SplitContainer1.Panel2.SuspendLayout();
			SplitContainer1.SuspendLayout();
			StatusStrip1.SuspendLayout();
			SuspendLayout();
			txtChapterDesc.BackColor = System.Drawing.SystemColors.Control;
			txtChapterDesc.Cursor = System.Windows.Forms.Cursors.Arrow;
			txtChapterDesc.Dock = System.Windows.Forms.DockStyle.Fill;
			txtChapterDesc.Font = new System.Drawing.Font("Segoe UI", 10f);
			txtChapterDesc.ForeColor = System.Drawing.SystemColors.WindowText;
			txtChapterDesc.Location = new System.Drawing.Point(2, 2);
			txtChapterDesc.Margin = new System.Windows.Forms.Padding(2);
			txtChapterDesc.MaxLength = 0;
			txtChapterDesc.Name = "txtChapterDesc";
			txtChapterDesc.ReadOnly = true;
			txtChapterDesc.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtChapterDesc.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
			txtChapterDesc.Size = new System.Drawing.Size(231, 148);
			txtChapterDesc.TabIndex = 39;
			txtChapterDesc.Text = "";
			ToolTip1.SetToolTip(txtChapterDesc, "Chapter Description (Double click to edit)");
			txtDesc.AcceptsTab = true;
			txtDesc.BackColor = System.Drawing.SystemColors.Window;
			txtDesc.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtDesc.Dock = System.Windows.Forms.DockStyle.Fill;
			txtDesc.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtDesc.ForeColor = System.Drawing.SystemColors.WindowText;
			txtDesc.Location = new System.Drawing.Point(2, 2);
			txtDesc.Margin = new System.Windows.Forms.Padding(2);
			txtDesc.MaxLength = 0;
			txtDesc.Name = "txtDesc";
			txtDesc.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtDesc.Size = new System.Drawing.Size(665, 111);
			txtDesc.TabIndex = 35;
			txtDesc.Text = "";
			ToolTip1.SetToolTip(txtDesc, "Scene description. Click SAVE after editing.");
			txtBody.BackColor = System.Drawing.SystemColors.Control;
			txtBody.Cursor = System.Windows.Forms.Cursors.Arrow;
			txtBody.Dock = System.Windows.Forms.DockStyle.Fill;
			txtBody.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtBody.Location = new System.Drawing.Point(2, 2);
			txtBody.Margin = new System.Windows.Forms.Padding(2);
			txtBody.Name = "txtBody";
			txtBody.ReadOnly = true;
			txtBody.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
			txtBody.Size = new System.Drawing.Size(665, 111);
			txtBody.TabIndex = 33;
			txtBody.Text = "";
			ToolTip1.SetToolTip(txtBody, "Scene content (This panel is readonly. Double-click to edit)");
			lblGoal.AutoSize = true;
			lblGoal.BackColor = System.Drawing.Color.FromArgb(0, 192, 0);
			lblGoal.Cursor = System.Windows.Forms.Cursors.Default;
			lblGoal.Dock = System.Windows.Forms.DockStyle.Fill;
			lblGoal.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			lblGoal.ForeColor = System.Drawing.SystemColors.HighlightText;
			lblGoal.Location = new System.Drawing.Point(2, 2);
			lblGoal.Margin = new System.Windows.Forms.Padding(2);
			lblGoal.Name = "lblGoal";
			lblGoal.RightToLeft = System.Windows.Forms.RightToLeft.No;
			lblGoal.Size = new System.Drawing.Size(127, 25);
			lblGoal.TabIndex = 26;
			lblGoal.Text = "Goal";
			lblGoal.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			ToolTip1.SetToolTip(lblGoal, "Goal");
			lblConflict.AutoSize = true;
			lblConflict.BackColor = System.Drawing.Color.FromArgb(192, 192, 0);
			lblConflict.Cursor = System.Windows.Forms.Cursors.Default;
			lblConflict.Dock = System.Windows.Forms.DockStyle.Fill;
			lblConflict.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			lblConflict.ForeColor = System.Drawing.SystemColors.HighlightText;
			lblConflict.Location = new System.Drawing.Point(2, 31);
			lblConflict.Margin = new System.Windows.Forms.Padding(2);
			lblConflict.Name = "lblConflict";
			lblConflict.RightToLeft = System.Windows.Forms.RightToLeft.No;
			lblConflict.Size = new System.Drawing.Size(127, 25);
			lblConflict.TabIndex = 25;
			lblConflict.Text = "Conflict";
			lblConflict.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			ToolTip1.SetToolTip(lblConflict, "Conflict");
			lblOutcome.AutoSize = true;
			lblOutcome.BackColor = System.Drawing.Color.FromArgb(192, 0, 0);
			lblOutcome.Cursor = System.Windows.Forms.Cursors.Default;
			lblOutcome.Dock = System.Windows.Forms.DockStyle.Fill;
			lblOutcome.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			lblOutcome.ForeColor = System.Drawing.SystemColors.HighlightText;
			lblOutcome.Location = new System.Drawing.Point(2, 60);
			lblOutcome.Margin = new System.Windows.Forms.Padding(2);
			lblOutcome.Name = "lblOutcome";
			lblOutcome.RightToLeft = System.Windows.Forms.RightToLeft.No;
			lblOutcome.Size = new System.Drawing.Size(127, 25);
			lblOutcome.TabIndex = 24;
			lblOutcome.Text = "Outcome";
			lblOutcome.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			ToolTip1.SetToolTip(lblOutcome, "Outcome");
			txtSceneNotes.AcceptsTab = true;
			txtSceneNotes.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right);
			txtSceneNotes.BackColor = System.Drawing.SystemColors.Window;
			txtSceneNotes.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtSceneNotes.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtSceneNotes.ForeColor = System.Drawing.SystemColors.WindowText;
			txtSceneNotes.Location = new System.Drawing.Point(2, 5);
			txtSceneNotes.Margin = new System.Windows.Forms.Padding(2);
			txtSceneNotes.MaxLength = 0;
			txtSceneNotes.Name = "txtSceneNotes";
			txtSceneNotes.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtSceneNotes.Size = new System.Drawing.Size(613, 210);
			txtSceneNotes.TabIndex = 19;
			txtSceneNotes.Text = "";
			ToolTip1.SetToolTip(txtSceneNotes, "Scene description. Click SAVE after editing, or you'll lose your work.");
			txtOutcome.AcceptsReturn = true;
			txtOutcome.AccessibleName = "Outcome";
			txtOutcome.BackColor = System.Drawing.SystemColors.Window;
			txtOutcome.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtOutcome.Dock = System.Windows.Forms.DockStyle.Fill;
			txtOutcome.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtOutcome.ForeColor = System.Drawing.SystemColors.WindowText;
			txtOutcome.Location = new System.Drawing.Point(133, 60);
			txtOutcome.Margin = new System.Windows.Forms.Padding(2);
			txtOutcome.MaxLength = 0;
			txtOutcome.Name = "txtOutcome";
			txtOutcome.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtOutcome.Size = new System.Drawing.Size(410, 25);
			txtOutcome.TabIndex = 23;
			ToolTip1.SetToolTip(txtOutcome, "Click SAVE after editing.");
			txtConflict.AcceptsReturn = true;
			txtConflict.AccessibleName = "Conflict";
			txtConflict.BackColor = System.Drawing.SystemColors.Window;
			txtConflict.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtConflict.Dock = System.Windows.Forms.DockStyle.Fill;
			txtConflict.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtConflict.ForeColor = System.Drawing.SystemColors.WindowText;
			txtConflict.Location = new System.Drawing.Point(133, 31);
			txtConflict.Margin = new System.Windows.Forms.Padding(2);
			txtConflict.MaxLength = 0;
			txtConflict.Name = "txtConflict";
			txtConflict.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtConflict.Size = new System.Drawing.Size(410, 25);
			txtConflict.TabIndex = 22;
			ToolTip1.SetToolTip(txtConflict, "Click SAVE after editing.");
			txtGoal.AcceptsReturn = true;
			txtGoal.AccessibleName = "Goal";
			txtGoal.BackColor = System.Drawing.SystemColors.Window;
			txtGoal.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtGoal.Dock = System.Windows.Forms.DockStyle.Fill;
			txtGoal.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtGoal.ForeColor = System.Drawing.SystemColors.WindowText;
			txtGoal.Location = new System.Drawing.Point(133, 2);
			txtGoal.Margin = new System.Windows.Forms.Padding(2);
			txtGoal.MaxLength = 0;
			txtGoal.Name = "txtGoal";
			txtGoal.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtGoal.Size = new System.Drawing.Size(410, 25);
			txtGoal.TabIndex = 21;
			ToolTip1.SetToolTip(txtGoal, "Click SAVE after editing.");
			ListChapters.AccessibleName = "Chapters";
			ListChapters.AllowDrop = true;
			ListChapters.BackColor = System.Drawing.SystemColors.Window;
			ListChapters.Columns.AddRange(new System.Windows.Forms.ColumnHeader[5]
			{
				_ListChapters_ColumnHeader_1,
				_ListChapters_ColumnHeader_2,
				_ListChapters_ColumnHeader_3,
				_ListChapters_ColumnHeader_4,
				colDesc
			});
			ListChapters.ContextMenuStrip = ctxChapters;
			ListChapters.Dock = System.Windows.Forms.DockStyle.Fill;
			ListChapters.Font = new System.Drawing.Font("Segoe UI", 10f);
			ListChapters.ForeColor = System.Drawing.SystemColors.WindowText;
			ListChapters.FullRowSelect = true;
			ListChapters.HideSelection = false;
			ListChapters.Location = new System.Drawing.Point(2, 2);
			ListChapters.Margin = new System.Windows.Forms.Padding(2);
			ListChapters.Name = "ListChapters";
			ListChapters.Size = new System.Drawing.Size(231, 393);
			ListChapters.TabIndex = 46;
			ToolTip1.SetToolTip(ListChapters, resources.GetString("ListChapters.ToolTip"));
			ListChapters.UseCompatibleStateImageBehavior = false;
			ListChapters.View = System.Windows.Forms.View.Details;
			_ListChapters_ColumnHeader_1.Text = "Title";
			_ListChapters_ColumnHeader_1.Width = 75;
			_ListChapters_ColumnHeader_2.Text = "W";
			_ListChapters_ColumnHeader_2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			_ListChapters_ColumnHeader_2.Width = 46;
			_ListChapters_ColumnHeader_3.Text = "S";
			_ListChapters_ColumnHeader_3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			_ListChapters_ColumnHeader_3.Width = 40;
			_ListChapters_ColumnHeader_4.Text = "P";
			_ListChapters_ColumnHeader_4.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			_ListChapters_ColumnHeader_4.Width = 70;
			colDesc.Text = "Desc";
			ctxChapters.ImageScalingSize = new System.Drawing.Size(20, 20);
			ctxChapters.Items.AddRange(new System.Windows.Forms.ToolStripItem[12]
			{
				tsmCopyChapters,
				tsmPasteChapters,
				ToolStripSeparator22,
				ctxChapNew,
				ctxChapEdit,
				ToolStripSeparator5,
				ctxChapToggleUsed,
				ctxChapToggleType,
				ToolStripSeparator11,
				MarkAsStartOfMainMatterToolStripMenuItem,
				ctxChapMarkMiddle,
				ctxChapMarkEnd
			});
			ctxChapters.Name = "ctxChapters";
			ctxChapters.Size = new System.Drawing.Size(322, 256);
			tsmCopyChapters.Name = "tsmCopyChapters";
			tsmCopyChapters.Size = new System.Drawing.Size(321, 26);
			tsmCopyChapters.Text = "Copy to Clipboard";
			tsmCopyChapters.ToolTipText = "Copy the selected chapters to the clipboard";
			tsmPasteChapters.Name = "tsmPasteChapters";
			tsmPasteChapters.Size = new System.Drawing.Size(321, 26);
			tsmPasteChapters.Text = "Paste from Clipboard";
			tsmPasteChapters.ToolTipText = "Paste chapters into this project";
			ToolStripSeparator22.Name = "ToolStripSeparator22";
			ToolStripSeparator22.Size = new System.Drawing.Size(318, 6);
			ctxChapNew.Name = "ctxChapNew";
			ctxChapNew.Size = new System.Drawing.Size(321, 26);
			ctxChapNew.Text = "Create new chapter";
			ctxChapEdit.Name = "ctxChapEdit";
			ctxChapEdit.Size = new System.Drawing.Size(321, 26);
			ctxChapEdit.Text = "Edit selected chapter";
			ToolStripSeparator5.Name = "ToolStripSeparator5";
			ToolStripSeparator5.Size = new System.Drawing.Size(318, 6);
			ctxChapToggleUsed.Name = "ctxChapToggleUsed";
			ctxChapToggleUsed.Size = new System.Drawing.Size(321, 26);
			ctxChapToggleUsed.Text = "Toggle Used/Unused";
			ctxChapToggleType.Name = "ctxChapToggleType";
			ctxChapToggleType.Size = new System.Drawing.Size(321, 26);
			ctxChapToggleType.Text = "Toggle Chapter/Other";
			ToolStripSeparator11.Name = "ToolStripSeparator11";
			ToolStripSeparator11.Size = new System.Drawing.Size(318, 6);
			MarkAsStartOfMainMatterToolStripMenuItem.Name = "MarkAsStartOfMainMatterToolStripMenuItem";
			MarkAsStartOfMainMatterToolStripMenuItem.Size = new System.Drawing.Size(321, 26);
			MarkAsStartOfMainMatterToolStripMenuItem.Text = "Mark as last chapter of frontmatter";
			MarkAsStartOfMainMatterToolStripMenuItem.ToolTipText = "Indicates the first chapter of the actual book, after the introduction, TOC, copyright page, etc";
			ctxChapMarkMiddle.Name = "ctxChapMarkMiddle";
			ctxChapMarkMiddle.Size = new System.Drawing.Size(321, 26);
			ctxChapMarkMiddle.Text = "Mark as start of middle section";
			ctxChapMarkEnd.Name = "ctxChapMarkEnd";
			ctxChapMarkEnd.Size = new System.Drawing.Size(321, 26);
			ctxChapMarkEnd.Text = "Mark as start of end section";
			ListScenes.AccessibleName = "Scenes";
			ListScenes.AllowColumnReorder = true;
			ListScenes.AllowDrop = true;
			ListScenes.BackColor = System.Drawing.SystemColors.Window;
			ListScenes.Columns.AddRange(new System.Windows.Forms.ColumnHeader[12]
			{
				colVP,
				colWords,
				colScene,
				colStatus,
				colAR,
				colFilename,
				colLetters,
				colChar,
				colLocations,
				colItems,
				colDateTime,
				colFiledate
			});
			ListScenes.ContextMenuStrip = ctxScenes;
			ListScenes.Dock = System.Windows.Forms.DockStyle.Fill;
			ListScenes.Font = new System.Drawing.Font("Segoe UI", 10f);
			ListScenes.ForeColor = System.Drawing.SystemColors.WindowText;
			ListScenes.FullRowSelect = true;
			ListScenes.GridLines = true;
			ListScenes.HideSelection = false;
			ListScenes.Location = new System.Drawing.Point(0, 0);
			ListScenes.Margin = new System.Windows.Forms.Padding(2);
			ListScenes.Name = "ListScenes";
			ListScenes.Size = new System.Drawing.Size(677, 362);
			ListScenes.TabIndex = 37;
			ToolTip1.SetToolTip(ListScenes, "Scene list");
			ListScenes.UseCompatibleStateImageBehavior = false;
			ListScenes.View = System.Windows.Forms.View.Details;
			colVP.Text = "Viewpoint";
			colVP.Width = 87;
			colWords.Text = "Words";
			colWords.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			colWords.Width = 63;
			colScene.Text = "Scene";
			colScene.Width = 330;
			colStatus.Text = "Status";
			colStatus.Width = 66;
			colAR.Text = "A/R";
			colAR.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			colAR.Width = 52;
			colFilename.Text = "Filename";
			colFilename.Width = 91;
			colLetters.Text = "Letters";
			colLetters.Width = 57;
			colChar.Text = "Characters";
			colChar.Width = 117;
			colLocations.Text = "Locations";
			colLocations.Width = 84;
			colItems.Text = "Items";
			colDateTime.Text = "Date/Time";
			colFiledate.Text = "File Date";
			ctxScenes.ImageScalingSize = new System.Drawing.Size(20, 20);
			ctxScenes.Items.AddRange(new System.Windows.Forms.ToolStripItem[18]
			{
				ctxAddNewScene,
				ctxEditSelected,
				ToolStripSeparator34,
				ctxScenesToClipboard,
				ctxPasteScenesFromClipboard,
				DuplicateThisSceneToolStripMenuItem,
				ToolStripSeparator12,
				OpenRTFWithDefaultEditorToolStripMenuItem,
				FinishedWithExternalEditorToolStripMenuItem,
				OpenContainingFolderToolStripMenuItem,
				ToolStripSeparator1,
				ctxSetStatus,
				SetDateToolStripMenuItem,
				ctxToggleUsed,
				ToolStripSeparator2,
				mnuConvYW2Scn,
				ctxRemoveSelected,
				tsbCreateScenesAndChaptersFromScene
			});
			ctxScenes.Name = "ctxScenes";
			ctxScenes.Size = new System.Drawing.Size(359, 392);
			ctxAddNewScene.Name = "ctxAddNewScene";
			ctxAddNewScene.Size = new System.Drawing.Size(358, 26);
			ctxAddNewScene.Text = "Add scene";
			ctxEditSelected.Name = "ctxEditSelected";
			ctxEditSelected.Size = new System.Drawing.Size(358, 26);
			ctxEditSelected.Text = "Edit selected scene";
			ToolStripSeparator34.Name = "ToolStripSeparator34";
			ToolStripSeparator34.Size = new System.Drawing.Size(355, 6);
			ctxScenesToClipboard.Name = "ctxScenesToClipboard";
			ctxScenesToClipboard.Size = new System.Drawing.Size(358, 26);
			ctxScenesToClipboard.Text = "Copy to Clipboard";
			ctxPasteScenesFromClipboard.Name = "ctxPasteScenesFromClipboard";
			ctxPasteScenesFromClipboard.Size = new System.Drawing.Size(358, 26);
			ctxPasteScenesFromClipboard.Text = "Paste from Clipboard";
			DuplicateThisSceneToolStripMenuItem.Name = "DuplicateThisSceneToolStripMenuItem";
			DuplicateThisSceneToolStripMenuItem.Size = new System.Drawing.Size(358, 26);
			DuplicateThisSceneToolStripMenuItem.Text = "Clone selected scene(s)";
			ToolStripSeparator12.Name = "ToolStripSeparator12";
			ToolStripSeparator12.Size = new System.Drawing.Size(355, 6);
			OpenRTFWithDefaultEditorToolStripMenuItem.Name = "OpenRTFWithDefaultEditorToolStripMenuItem";
			OpenRTFWithDefaultEditorToolStripMenuItem.Size = new System.Drawing.Size(358, 26);
			OpenRTFWithDefaultEditorToolStripMenuItem.Text = "Open content with default RTF editor";
			FinishedWithExternalEditorToolStripMenuItem.Name = "FinishedWithExternalEditorToolStripMenuItem";
			FinishedWithExternalEditorToolStripMenuItem.Size = new System.Drawing.Size(358, 26);
			FinishedWithExternalEditorToolStripMenuItem.Text = "Finished with external editor";
			OpenContainingFolderToolStripMenuItem.Name = "OpenContainingFolderToolStripMenuItem";
			OpenContainingFolderToolStripMenuItem.Size = new System.Drawing.Size(358, 26);
			OpenContainingFolderToolStripMenuItem.Text = "Open containing folder";
			ToolStripSeparator1.Name = "ToolStripSeparator1";
			ToolStripSeparator1.Size = new System.Drawing.Size(355, 6);
			ctxSetStatus.Name = "ctxSetStatus";
			ctxSetStatus.Size = new System.Drawing.Size(358, 26);
			ctxSetStatus.Text = "Set Status";
			SetDateToolStripMenuItem.Name = "SetDateToolStripMenuItem";
			SetDateToolStripMenuItem.Size = new System.Drawing.Size(358, 26);
			SetDateToolStripMenuItem.Text = "Set Date";
			SetDateToolStripMenuItem.Visible = false;
			ctxToggleUsed.Name = "ctxToggleUsed";
			ctxToggleUsed.Size = new System.Drawing.Size(358, 26);
			ctxToggleUsed.Text = "Toggle Used/Unused";
			ToolStripSeparator2.Name = "ToolStripSeparator2";
			ToolStripSeparator2.Size = new System.Drawing.Size(355, 6);
			mnuConvYW2Scn.Name = "mnuConvYW2Scn";
			mnuConvYW2Scn.Size = new System.Drawing.Size(358, 26);
			mnuConvYW2Scn.Text = "Convert yWriter2 Scene";
			ctxRemoveSelected.Name = "ctxRemoveSelected";
			ctxRemoveSelected.Size = new System.Drawing.Size(358, 26);
			ctxRemoveSelected.Text = "Remove selected scene(s)";
			tsbCreateScenesAndChaptersFromScene.Name = "tsbCreateScenesAndChaptersFromScene";
			tsbCreateScenesAndChaptersFromScene.Size = new System.Drawing.Size(358, 26);
			tsbCreateScenesAndChaptersFromScene.Text = "Create scenes and chapters from outline";
			ListNotes.AllowDrop = true;
			ListNotes.BackColor = System.Drawing.SystemColors.Window;
			ListNotes.Columns.AddRange(new System.Windows.Forms.ColumnHeader[1]
			{
				_ListNotes_ColumnHeader_1
			});
			ListNotes.ContextMenuStrip = ctxNotes;
			ListNotes.Dock = System.Windows.Forms.DockStyle.Fill;
			ListNotes.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListNotes.ForeColor = System.Drawing.SystemColors.WindowText;
			ListNotes.FullRowSelect = true;
			ListNotes.GridLines = true;
			ListNotes.HideSelection = false;
			ListNotes.Location = new System.Drawing.Point(2, 2);
			ListNotes.Margin = new System.Windows.Forms.Padding(2);
			ListNotes.Name = "ListNotes";
			ListNotes.Size = new System.Drawing.Size(673, 449);
			ListNotes.TabIndex = 42;
			ToolTip1.SetToolTip(ListNotes, "Drag and drop notes to rearrange the order");
			ListNotes.UseCompatibleStateImageBehavior = false;
			ListNotes.View = System.Windows.Forms.View.Details;
			_ListNotes_ColumnHeader_1.Text = "Note";
			_ListNotes_ColumnHeader_1.Width = 941;
			ctxNotes.ImageScalingSize = new System.Drawing.Size(20, 20);
			ctxNotes.Items.AddRange(new System.Windows.Forms.ToolStripItem[6]
			{
				NewNoteToolStripMenuItem,
				ToolStripSeparator26,
				PrintSelectedNotesToolStripMenuItem,
				PrintAllNotesToolStripMenuItem,
				ToolStripSeparator24,
				DeleteNoteToolStripMenuItem
			});
			ctxNotes.Name = "ctxNotes";
			ctxNotes.Size = new System.Drawing.Size(237, 120);
			NewNoteToolStripMenuItem.Name = "NewNoteToolStripMenuItem";
			NewNoteToolStripMenuItem.Size = new System.Drawing.Size(236, 26);
			NewNoteToolStripMenuItem.Text = "New";
			ToolStripSeparator26.Name = "ToolStripSeparator26";
			ToolStripSeparator26.Size = new System.Drawing.Size(233, 6);
			PrintSelectedNotesToolStripMenuItem.Name = "PrintSelectedNotesToolStripMenuItem";
			PrintSelectedNotesToolStripMenuItem.Size = new System.Drawing.Size(236, 26);
			PrintSelectedNotesToolStripMenuItem.Text = "Print selected note(s)";
			PrintAllNotesToolStripMenuItem.Name = "PrintAllNotesToolStripMenuItem";
			PrintAllNotesToolStripMenuItem.Size = new System.Drawing.Size(236, 26);
			PrintAllNotesToolStripMenuItem.Text = "Print all notes";
			ToolStripSeparator24.Name = "ToolStripSeparator24";
			ToolStripSeparator24.Size = new System.Drawing.Size(233, 6);
			DeleteNoteToolStripMenuItem.Name = "DeleteNoteToolStripMenuItem";
			DeleteNoteToolStripMenuItem.Size = new System.Drawing.Size(236, 26);
			DeleteNoteToolStripMenuItem.Text = "Delete selected note(s)";
			txtNoteEditor.Dock = System.Windows.Forms.DockStyle.Bottom;
			txtNoteEditor.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtNoteEditor.Location = new System.Drawing.Point(2, 485);
			txtNoteEditor.Margin = new System.Windows.Forms.Padding(2);
			txtNoteEditor.Name = "txtNoteEditor";
			txtNoteEditor.ReadOnly = true;
			txtNoteEditor.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
			txtNoteEditor.Size = new System.Drawing.Size(673, 50);
			txtNoteEditor.TabIndex = 43;
			txtNoteEditor.Text = "";
			ToolTip1.SetToolTip(txtNoteEditor, "If you add web URLs to the note, they'll be clickable.");
			TabControlScene.Controls.Add(tabSceneContent);
			TabControlScene.Controls.Add(tabSceneDescription);
			TabControlScene.Controls.Add(tabSceneCharacters);
			TabControlScene.Controls.Add(tabSceneLocations);
			TabControlScene.Controls.Add(tabSceneItems);
			TabControlScene.Controls.Add(tabSceneNotes);
			TabControlScene.Controls.Add(tabSceneGoals);
			TabControlScene.Dock = System.Windows.Forms.DockStyle.Bottom;
			TabControlScene.ImageList = ImageList2;
			TabControlScene.ItemSize = new System.Drawing.Size(84, 26);
			TabControlScene.Location = new System.Drawing.Point(0, 388);
			TabControlScene.Margin = new System.Windows.Forms.Padding(2);
			TabControlScene.Name = "TabControlScene";
			TabControlScene.Padding = new System.Drawing.Point(0, 0);
			TabControlScene.SelectedIndex = 0;
			TabControlScene.Size = new System.Drawing.Size(677, 149);
			TabControlScene.TabIndex = 44;
			tabSceneContent.BackColor = System.Drawing.SystemColors.Window;
			tabSceneContent.Controls.Add(txtBody);
			tabSceneContent.ForeColor = System.Drawing.Color.Transparent;
			tabSceneContent.Location = new System.Drawing.Point(4, 30);
			tabSceneContent.Margin = new System.Windows.Forms.Padding(2);
			tabSceneContent.Name = "tabSceneContent";
			tabSceneContent.Padding = new System.Windows.Forms.Padding(2);
			tabSceneContent.Size = new System.Drawing.Size(669, 115);
			tabSceneContent.TabIndex = 1;
			tabSceneContent.Text = "Content";
			tabSceneDescription.BackColor = System.Drawing.SystemColors.Window;
			tabSceneDescription.Controls.Add(cmdSaveSceneDesc);
			tabSceneDescription.Controls.Add(txtDesc);
			tabSceneDescription.Location = new System.Drawing.Point(4, 30);
			tabSceneDescription.Margin = new System.Windows.Forms.Padding(2);
			tabSceneDescription.Name = "tabSceneDescription";
			tabSceneDescription.Padding = new System.Windows.Forms.Padding(2);
			tabSceneDescription.Size = new System.Drawing.Size(669, 115);
			tabSceneDescription.TabIndex = 0;
			tabSceneDescription.Text = "Description";
			cmdSaveSceneDesc.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right);
			cmdSaveSceneDesc.Location = new System.Drawing.Point(406, 190);
			cmdSaveSceneDesc.Margin = new System.Windows.Forms.Padding(2);
			cmdSaveSceneDesc.Name = "cmdSaveSceneDesc";
			cmdSaveSceneDesc.Size = new System.Drawing.Size(47, 24);
			cmdSaveSceneDesc.TabIndex = 44;
			cmdSaveSceneDesc.Text = "Save";
			cmdSaveSceneDesc.UseVisualStyleBackColor = true;
			tabSceneCharacters.Controls.Add(TableLayoutPanel4);
			tabSceneCharacters.Location = new System.Drawing.Point(4, 30);
			tabSceneCharacters.Margin = new System.Windows.Forms.Padding(2);
			tabSceneCharacters.Name = "tabSceneCharacters";
			tabSceneCharacters.Padding = new System.Windows.Forms.Padding(2);
			tabSceneCharacters.Size = new System.Drawing.Size(669, 115);
			tabSceneCharacters.TabIndex = 2;
			tabSceneCharacters.Text = "Characters";
			tabSceneCharacters.UseVisualStyleBackColor = true;
			TableLayoutPanel4.ColumnCount = 2;
			TableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel4.Controls.Add(ListCharAll, 1, 0);
			TableLayoutPanel4.Controls.Add(ListCharUsed, 0, 0);
			TableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
			TableLayoutPanel4.Location = new System.Drawing.Point(2, 2);
			TableLayoutPanel4.Margin = new System.Windows.Forms.Padding(2);
			TableLayoutPanel4.Name = "TableLayoutPanel4";
			TableLayoutPanel4.RowCount = 1;
			TableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100f));
			TableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 111f));
			TableLayoutPanel4.Size = new System.Drawing.Size(665, 111);
			TableLayoutPanel4.TabIndex = 32;
			ListCharAll.AllowDrop = true;
			ListCharAll.BackColor = System.Drawing.SystemColors.Window;
			ListCharAll.BorderStyle = System.Windows.Forms.BorderStyle.None;
			ListCharAll.Columns.AddRange(new System.Windows.Forms.ColumnHeader[2]
			{
				ListCharCol1,
				ListCharCol2
			});
			ListCharAll.ContextMenuStrip = ctxAllListsRC;
			ListCharAll.Dock = System.Windows.Forms.DockStyle.Fill;
			ListCharAll.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListCharAll.ForeColor = System.Drawing.SystemColors.WindowText;
			ListCharAll.FullRowSelect = true;
			ListCharAll.HideSelection = false;
			ListCharAll.Location = new System.Drawing.Point(334, 2);
			ListCharAll.Margin = new System.Windows.Forms.Padding(2);
			ListCharAll.Name = "ListCharAll";
			ListCharAll.Size = new System.Drawing.Size(329, 107);
			ListCharAll.SmallImageList = ImageList2;
			ListCharAll.TabIndex = 29;
			ListCharAll.UseCompatibleStateImageBehavior = false;
			ListCharAll.View = System.Windows.Forms.View.Details;
			ListCharCol1.Text = "All characters";
			ListCharCol1.Width = 294;
			ListCharCol2.Text = "Full Name";
			ListCharCol2.Width = 170;
			ctxAllListsRC.ImageScalingSize = new System.Drawing.Size(20, 20);
			ctxAllListsRC.Items.AddRange(new System.Windows.Forms.ToolStripItem[4]
			{
				ctxAddToAllSel,
				ctxRemoveFromAllSel,
				ToolStripSeparator18,
				tsmAddNewItem
			});
			ctxAllListsRC.Name = "ctxAllCharRC";
			ctxAllListsRC.Size = new System.Drawing.Size(306, 88);
			ctxAddToAllSel.Name = "ctxAddToAllSel";
			ctxAddToAllSel.Size = new System.Drawing.Size(305, 26);
			ctxAddToAllSel.Text = "Add to all selected scenes";
			ctxRemoveFromAllSel.Name = "ctxRemoveFromAllSel";
			ctxRemoveFromAllSel.Size = new System.Drawing.Size(305, 26);
			ctxRemoveFromAllSel.Text = "Remove from all selected scenes";
			ToolStripSeparator18.Name = "ToolStripSeparator18";
			ToolStripSeparator18.Size = new System.Drawing.Size(302, 6);
			tsmAddNewItem.Name = "tsmAddNewItem";
			tsmAddNewItem.Size = new System.Drawing.Size(305, 26);
			tsmAddNewItem.Text = "Add new";
			ImageList2.ImageStream = (System.Windows.Forms.ImageListStreamer)resources.GetObject("ImageList2.ImageStream");
			ImageList2.TransparentColor = System.Drawing.Color.FromArgb(192, 192, 192);
			ImageList2.Images.SetKeyName(0, "desc");
			ImageList2.Images.SetKeyName(1, "viewpoint");
			ImageList2.Images.SetKeyName(2, "item");
			ImageList2.Images.SetKeyName(3, "location");
			ImageList2.Images.SetKeyName(4, "character");
			ImageList2.Images.SetKeyName(5, "todo");
			ImageList2.Images.SetKeyName(6, "edit");
			ImageList2.Images.SetKeyName(7, "outcome");
			ImageList2.Images.SetKeyName(8, "conflict");
			ImageList2.Images.SetKeyName(9, "goal");
			ImageList2.Images.SetKeyName(10, "yw_Scene_16_ico.ico");
			ImageList2.Images.SetKeyName(11, "yw_Chapter_16_ico.ico");
			ImageList2.Images.SetKeyName(12, "yw_Note_16_ico.ico");
			ImageList2.Images.SetKeyName(13, "ywChapterOther_16.png");
			ImageList2.Images.SetKeyName(14, "yw_Chapter_Unused_16.png");
			ImageList2.Images.SetKeyName(15, "yw_Scene_Unused_16.png");
			ImageList2.Images.SetKeyName(16, "yw_Unused_16.png");
			ListCharUsed.AllowDrop = true;
			ListCharUsed.BackColor = System.Drawing.SystemColors.Window;
			ListCharUsed.BorderStyle = System.Windows.Forms.BorderStyle.None;
			ListCharUsed.Columns.AddRange(new System.Windows.Forms.ColumnHeader[2]
			{
				ListChar0Col1,
				ListChar0Col2
			});
			ListCharUsed.ContextMenuStrip = ctxListsRC;
			ListCharUsed.Dock = System.Windows.Forms.DockStyle.Fill;
			ListCharUsed.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListCharUsed.ForeColor = System.Drawing.SystemColors.WindowText;
			ListCharUsed.FullRowSelect = true;
			ListCharUsed.HideSelection = false;
			ListCharUsed.Location = new System.Drawing.Point(2, 2);
			ListCharUsed.Margin = new System.Windows.Forms.Padding(2);
			ListCharUsed.Name = "ListCharUsed";
			ListCharUsed.Size = new System.Drawing.Size(328, 107);
			ListCharUsed.SmallImageList = ImageList2;
			ListCharUsed.TabIndex = 28;
			ListCharUsed.UseCompatibleStateImageBehavior = false;
			ListCharUsed.View = System.Windows.Forms.View.Details;
			ListChar0Col1.Text = "In this scene";
			ListChar0Col1.Width = 294;
			ListChar0Col2.Text = "Full Name";
			ListChar0Col2.Width = 170;
			ctxListsRC.ImageScalingSize = new System.Drawing.Size(20, 20);
			ctxListsRC.Items.AddRange(new System.Windows.Forms.ToolStripItem[5]
			{
				ctxSetVP,
				ctxRemoveFromScene,
				ToolStripSeparator4,
				ctxEditListItem,
				AddNewToolStripMenuItem
			});
			ctxListsRC.Name = "ctxCharRC";
			ctxListsRC.Size = new System.Drawing.Size(236, 114);
			ctxSetVP.Name = "ctxSetVP";
			ctxSetVP.Size = new System.Drawing.Size(235, 26);
			ctxSetVP.Text = "Set as viewpoint";
			ctxRemoveFromScene.Name = "ctxRemoveFromScene";
			ctxRemoveFromScene.Size = new System.Drawing.Size(235, 26);
			ctxRemoveFromScene.Text = "Remove from scene(s)";
			ToolStripSeparator4.Name = "ToolStripSeparator4";
			ToolStripSeparator4.Size = new System.Drawing.Size(232, 6);
			ctxEditListItem.Name = "ctxEditListItem";
			ctxEditListItem.Size = new System.Drawing.Size(235, 26);
			ctxEditListItem.Text = "Edit";
			AddNewToolStripMenuItem.Name = "AddNewToolStripMenuItem";
			AddNewToolStripMenuItem.Size = new System.Drawing.Size(235, 26);
			AddNewToolStripMenuItem.Text = "Add new";
			tabSceneLocations.BackColor = System.Drawing.Color.Transparent;
			tabSceneLocations.Controls.Add(TableLayoutPanel2);
			tabSceneLocations.Location = new System.Drawing.Point(4, 30);
			tabSceneLocations.Margin = new System.Windows.Forms.Padding(2);
			tabSceneLocations.Name = "tabSceneLocations";
			tabSceneLocations.Padding = new System.Windows.Forms.Padding(2);
			tabSceneLocations.Size = new System.Drawing.Size(669, 115);
			tabSceneLocations.TabIndex = 3;
			tabSceneLocations.Text = "Locations";
			tabSceneLocations.UseVisualStyleBackColor = true;
			TableLayoutPanel2.BackColor = System.Drawing.Color.Transparent;
			TableLayoutPanel2.ColumnCount = 2;
			TableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel2.Controls.Add(ListLocAll, 1, 0);
			TableLayoutPanel2.Controls.Add(ListLocUsed, 0, 0);
			TableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
			TableLayoutPanel2.Location = new System.Drawing.Point(2, 2);
			TableLayoutPanel2.Margin = new System.Windows.Forms.Padding(2);
			TableLayoutPanel2.Name = "TableLayoutPanel2";
			TableLayoutPanel2.RowCount = 1;
			TableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100f));
			TableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 111f));
			TableLayoutPanel2.Size = new System.Drawing.Size(665, 111);
			TableLayoutPanel2.TabIndex = 17;
			ListLocAll.AllowDrop = true;
			ListLocAll.BackColor = System.Drawing.SystemColors.Window;
			ListLocAll.BorderStyle = System.Windows.Forms.BorderStyle.None;
			ListLocAll.Columns.AddRange(new System.Windows.Forms.ColumnHeader[1]
			{
				__ListLoc_1_ColumnHeader_1
			});
			ListLocAll.ContextMenuStrip = ctxAllListsRC;
			ListLocAll.Dock = System.Windows.Forms.DockStyle.Fill;
			ListLocAll.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListLocAll.ForeColor = System.Drawing.SystemColors.WindowText;
			ListLocAll.FullRowSelect = true;
			ListLocAll.HideSelection = false;
			ListLocAll.Location = new System.Drawing.Point(334, 2);
			ListLocAll.Margin = new System.Windows.Forms.Padding(2);
			ListLocAll.Name = "ListLocAll";
			ListLocAll.Size = new System.Drawing.Size(329, 107);
			ListLocAll.SmallImageList = ImageList2;
			ListLocAll.TabIndex = 14;
			ListLocAll.UseCompatibleStateImageBehavior = false;
			ListLocAll.View = System.Windows.Forms.View.Details;
			__ListLoc_1_ColumnHeader_1.Text = "All locations";
			__ListLoc_1_ColumnHeader_1.Width = 294;
			ListLocUsed.AllowDrop = true;
			ListLocUsed.BackColor = System.Drawing.SystemColors.Window;
			ListLocUsed.BorderStyle = System.Windows.Forms.BorderStyle.None;
			ListLocUsed.Columns.AddRange(new System.Windows.Forms.ColumnHeader[1]
			{
				__ListLoc_0_ColumnHeader_1
			});
			ListLocUsed.ContextMenuStrip = ctxListsRC;
			ListLocUsed.Dock = System.Windows.Forms.DockStyle.Fill;
			ListLocUsed.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListLocUsed.ForeColor = System.Drawing.SystemColors.WindowText;
			ListLocUsed.FullRowSelect = true;
			ListLocUsed.HideSelection = false;
			ListLocUsed.Location = new System.Drawing.Point(2, 2);
			ListLocUsed.Margin = new System.Windows.Forms.Padding(2);
			ListLocUsed.Name = "ListLocUsed";
			ListLocUsed.Size = new System.Drawing.Size(328, 107);
			ListLocUsed.SmallImageList = ImageList2;
			ListLocUsed.TabIndex = 13;
			ListLocUsed.UseCompatibleStateImageBehavior = false;
			ListLocUsed.View = System.Windows.Forms.View.Details;
			__ListLoc_0_ColumnHeader_1.Text = "In this scene";
			__ListLoc_0_ColumnHeader_1.Width = 294;
			tabSceneItems.Controls.Add(TableLayoutPanel1);
			tabSceneItems.Location = new System.Drawing.Point(4, 30);
			tabSceneItems.Margin = new System.Windows.Forms.Padding(2);
			tabSceneItems.Name = "tabSceneItems";
			tabSceneItems.Padding = new System.Windows.Forms.Padding(2);
			tabSceneItems.Size = new System.Drawing.Size(669, 115);
			tabSceneItems.TabIndex = 4;
			tabSceneItems.Text = "Items";
			tabSceneItems.UseVisualStyleBackColor = true;
			TableLayoutPanel1.ColumnCount = 2;
			TableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			TableLayoutPanel1.Controls.Add(ListItemsAll, 1, 0);
			TableLayoutPanel1.Controls.Add(ListItemsUsed, 0, 0);
			TableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
			TableLayoutPanel1.Location = new System.Drawing.Point(2, 2);
			TableLayoutPanel1.Margin = new System.Windows.Forms.Padding(2);
			TableLayoutPanel1.Name = "TableLayoutPanel1";
			TableLayoutPanel1.RowCount = 1;
			TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100f));
			TableLayoutPanel1.Size = new System.Drawing.Size(665, 111);
			TableLayoutPanel1.TabIndex = 12;
			ListItemsAll.AllowDrop = true;
			ListItemsAll.BackColor = System.Drawing.SystemColors.Window;
			ListItemsAll.BorderStyle = System.Windows.Forms.BorderStyle.None;
			ListItemsAll.Columns.AddRange(new System.Windows.Forms.ColumnHeader[1]
			{
				__ListItems_1_ColumnHeader_1
			});
			ListItemsAll.ContextMenuStrip = ctxAllListsRC;
			ListItemsAll.Dock = System.Windows.Forms.DockStyle.Fill;
			ListItemsAll.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListItemsAll.ForeColor = System.Drawing.SystemColors.WindowText;
			ListItemsAll.FullRowSelect = true;
			ListItemsAll.HideSelection = false;
			ListItemsAll.Location = new System.Drawing.Point(334, 2);
			ListItemsAll.Margin = new System.Windows.Forms.Padding(2);
			ListItemsAll.Name = "ListItemsAll";
			ListItemsAll.Size = new System.Drawing.Size(329, 107);
			ListItemsAll.SmallImageList = ImageList2;
			ListItemsAll.TabIndex = 9;
			ListItemsAll.UseCompatibleStateImageBehavior = false;
			ListItemsAll.View = System.Windows.Forms.View.Details;
			__ListItems_1_ColumnHeader_1.Text = "All items";
			__ListItems_1_ColumnHeader_1.Width = 294;
			ListItemsUsed.AllowDrop = true;
			ListItemsUsed.BackColor = System.Drawing.SystemColors.Window;
			ListItemsUsed.BorderStyle = System.Windows.Forms.BorderStyle.None;
			ListItemsUsed.Columns.AddRange(new System.Windows.Forms.ColumnHeader[1]
			{
				__ListItems_0_ColumnHeader_1
			});
			ListItemsUsed.ContextMenuStrip = ctxListsRC;
			ListItemsUsed.Dock = System.Windows.Forms.DockStyle.Fill;
			ListItemsUsed.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListItemsUsed.ForeColor = System.Drawing.SystemColors.WindowText;
			ListItemsUsed.FullRowSelect = true;
			ListItemsUsed.HideSelection = false;
			ListItemsUsed.Location = new System.Drawing.Point(2, 2);
			ListItemsUsed.Margin = new System.Windows.Forms.Padding(2);
			ListItemsUsed.Name = "ListItemsUsed";
			ListItemsUsed.Size = new System.Drawing.Size(328, 107);
			ListItemsUsed.SmallImageList = ImageList2;
			ListItemsUsed.TabIndex = 8;
			ListItemsUsed.UseCompatibleStateImageBehavior = false;
			ListItemsUsed.View = System.Windows.Forms.View.Details;
			__ListItems_0_ColumnHeader_1.Text = "In this scene";
			__ListItems_0_ColumnHeader_1.Width = 294;
			tabSceneNotes.Controls.Add(cmdSaveSceneNotes);
			tabSceneNotes.Controls.Add(txtSceneNotes);
			tabSceneNotes.Location = new System.Drawing.Point(4, 30);
			tabSceneNotes.Margin = new System.Windows.Forms.Padding(2);
			tabSceneNotes.Name = "tabSceneNotes";
			tabSceneNotes.Padding = new System.Windows.Forms.Padding(2);
			tabSceneNotes.Size = new System.Drawing.Size(669, 115);
			tabSceneNotes.TabIndex = 6;
			tabSceneNotes.Text = "Scene Notes";
			tabSceneNotes.UseVisualStyleBackColor = true;
			cmdSaveSceneNotes.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right);
			cmdSaveSceneNotes.Location = new System.Drawing.Point(620, 189);
			cmdSaveSceneNotes.Margin = new System.Windows.Forms.Padding(2);
			cmdSaveSceneNotes.Name = "cmdSaveSceneNotes";
			cmdSaveSceneNotes.Size = new System.Drawing.Size(47, 24);
			cmdSaveSceneNotes.TabIndex = 43;
			cmdSaveSceneNotes.Text = "Save";
			cmdSaveSceneNotes.UseVisualStyleBackColor = true;
			tabSceneGoals.Controls.Add(cmdSaveGoals);
			tabSceneGoals.Controls.Add(TableLayoutGoals);
			tabSceneGoals.Location = new System.Drawing.Point(4, 30);
			tabSceneGoals.Margin = new System.Windows.Forms.Padding(2);
			tabSceneGoals.Name = "tabSceneGoals";
			tabSceneGoals.Padding = new System.Windows.Forms.Padding(2);
			tabSceneGoals.Size = new System.Drawing.Size(669, 115);
			tabSceneGoals.TabIndex = 5;
			tabSceneGoals.Text = "Goals";
			tabSceneGoals.UseVisualStyleBackColor = true;
			cmdSaveGoals.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
			cmdSaveGoals.AutoSize = true;
			cmdSaveGoals.Location = new System.Drawing.Point(568, 51);
			cmdSaveGoals.Margin = new System.Windows.Forms.Padding(2);
			cmdSaveGoals.Name = "cmdSaveGoals";
			cmdSaveGoals.Size = new System.Drawing.Size(81, 29);
			cmdSaveGoals.TabIndex = 42;
			cmdSaveGoals.Text = "Save";
			cmdSaveGoals.UseVisualStyleBackColor = true;
			TableLayoutGoals.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right);
			TableLayoutGoals.AutoSize = true;
			TableLayoutGoals.ColumnCount = 2;
			TableLayoutGoals.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 24.14487f));
			TableLayoutGoals.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 75.85513f));
			TableLayoutGoals.Controls.Add(lblGoal, 0, 0);
			TableLayoutGoals.Controls.Add(txtOutcome, 1, 2);
			TableLayoutGoals.Controls.Add(txtConflict, 1, 1);
			TableLayoutGoals.Controls.Add(txtGoal, 1, 0);
			TableLayoutGoals.Controls.Add(lblConflict, 0, 1);
			TableLayoutGoals.Controls.Add(lblOutcome, 0, 2);
			TableLayoutGoals.Location = new System.Drawing.Point(4, 24);
			TableLayoutGoals.Margin = new System.Windows.Forms.Padding(2);
			TableLayoutGoals.MinimumSize = new System.Drawing.Size(0, 66);
			TableLayoutGoals.Name = "TableLayoutGoals";
			TableLayoutGoals.RowCount = 3;
			TableLayoutGoals.RowStyles.Add(new System.Windows.Forms.RowStyle());
			TableLayoutGoals.RowStyles.Add(new System.Windows.Forms.RowStyle());
			TableLayoutGoals.RowStyles.Add(new System.Windows.Forms.RowStyle());
			TableLayoutGoals.Size = new System.Drawing.Size(545, 87);
			TableLayoutGoals.TabIndex = 41;
			MainMenu1.Font = new System.Drawing.Font("Segoe UI", 10f);
			MainMenu1.ImageScalingSize = new System.Drawing.Size(20, 20);
			MainMenu1.Items.AddRange(new System.Windows.Forms.ToolStripItem[12]
			{
				mnuProject,
				mnuPrint,
				mnuSearch,
				mnuChapters,
				mnuScene,
				mnuChar,
				mnuLocations,
				mnuItems,
				mnuTools,
				mnuLocalise,
				mnuHelp,
				YWriterAndroidComingSoonToolStripMenuItem
			});
			MainMenu1.Location = new System.Drawing.Point(0, 0);
			MainMenu1.Name = "MainMenu1";
			MainMenu1.Padding = new System.Windows.Forms.Padding(5, 2, 0, 2);
			MainMenu1.Size = new System.Drawing.Size(1011, 27);
			MainMenu1.TabIndex = 42;
			mnuProject.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[26]
			{
				Version6FilesToolStripMenuItem,
				mnuNewProj,
				mnuProjectGen,
				pbarcreatetext,
				mnuLoadProj,
				OpenProjectFolderToolStripMenuItem,
				mnuOpenRecent,
				ImportFileToolStripMenuItem,
				ImportDataToolStripMenuItem,
				ApplyOutlineToolStripMenuItem,
				pbart,
				mnuPrintProject,
				ToolStripSeparator25,
				mnuSaveProj,
				mnuSaveAs,
				mnuExportProj,
				mnuExportSelectedChapters,
				ExportSelectedScenesToolStripMenuItem,
				mnuExportData,
				pbarm,
				mnuCloseProject,
				mnubar33,
				LoadPreviousProjectOnStartupToolStripMenuItem,
				mnuSettings,
				ToolStripSeparator7,
				mnuConfirmExit
			});
			mnuProject.Name = "mnuProject";
			mnuProject.Size = new System.Drawing.Size(63, 23);
			mnuProject.Text = "Project";
			Version6FilesToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[6]
			{
				WhatIsThisMenuForToolStripMenuItem,
				READTHISFIRSTToolStripMenuItem,
				ToolStripSeparator41,
				CreateEmptyV6,
				ImportWIPToV6,
				SaveAsYw6ProjectToolStripMenuItem
			});
			Version6FilesToolStripMenuItem.Name = "Version6FilesToolStripMenuItem";
			Version6FilesToolStripMenuItem.Size = new System.Drawing.Size(278, 24);
			Version6FilesToolStripMenuItem.Text = "Version 6 Files";
			WhatIsThisMenuForToolStripMenuItem.Name = "WhatIsThisMenuForToolStripMenuItem";
			WhatIsThisMenuForToolStripMenuItem.Size = new System.Drawing.Size(329, 24);
			WhatIsThisMenuForToolStripMenuItem.Text = "What is this menu for?";
			READTHISFIRSTToolStripMenuItem.Name = "READTHISFIRSTToolStripMenuItem";
			READTHISFIRSTToolStripMenuItem.Size = new System.Drawing.Size(329, 24);
			READTHISFIRSTToolStripMenuItem.Text = "^^^^^^^ READ THIS FIRST ^^^^^^^";
			ToolStripSeparator41.Name = "ToolStripSeparator41";
			ToolStripSeparator41.Size = new System.Drawing.Size(326, 6);
			CreateEmptyV6.Name = "CreateEmptyV6";
			CreateEmptyV6.Size = new System.Drawing.Size(329, 24);
			CreateEmptyV6.Text = "Create Empty yw6 Project";
			ImportWIPToV6.Name = "ImportWIPToV6";
			ImportWIPToV6.Size = new System.Drawing.Size(329, 24);
			ImportWIPToV6.Text = "Import a work in progress";
			ImportWIPToV6.ToolTipText = "Import an RTF or TXT file with chapter headings and scenes separated by '* * *'";
			SaveAsYw6ProjectToolStripMenuItem.Name = "SaveAsYw6ProjectToolStripMenuItem";
			SaveAsYw6ProjectToolStripMenuItem.Size = new System.Drawing.Size(329, 24);
			SaveAsYw6ProjectToolStripMenuItem.Text = "Save current project in yw6 format";
			mnuNewProj.Name = "mnuNewProj";
			mnuNewProj.Size = new System.Drawing.Size(278, 24);
			mnuNewProj.Text = "Create Empty Project";
			mnuProjectGen.Name = "mnuProjectGen";
			mnuProjectGen.Size = new System.Drawing.Size(278, 24);
			mnuProjectGen.Text = "New Project Wizard";
			pbarcreatetext.Name = "pbarcreatetext";
			pbarcreatetext.Size = new System.Drawing.Size(275, 6);
			mnuLoadProj.Name = "mnuLoadProj";
			mnuLoadProj.Size = new System.Drawing.Size(278, 24);
			mnuLoadProj.Text = "Open Project";
			OpenProjectFolderToolStripMenuItem.Name = "OpenProjectFolderToolStripMenuItem";
			OpenProjectFolderToolStripMenuItem.Size = new System.Drawing.Size(278, 24);
			OpenProjectFolderToolStripMenuItem.Text = "Open Project Folder";
			mnuOpenRecent.Name = "mnuOpenRecent";
			mnuOpenRecent.Size = new System.Drawing.Size(278, 24);
			mnuOpenRecent.Text = "Recent Projects";
			ImportFileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[6]
			{
				mnuImportProject,
				mnuImportSceneFile,
				ToolStripSeparator6,
				mnuImportyWriter2,
				mnuImportyWriter3,
				mnuImportyWriter4
			});
			ImportFileToolStripMenuItem.Name = "ImportFileToolStripMenuItem";
			ImportFileToolStripMenuItem.Size = new System.Drawing.Size(278, 24);
			ImportFileToolStripMenuItem.Text = "Import into new project";
			mnuImportProject.Name = "mnuImportProject";
			mnuImportProject.Size = new System.Drawing.Size(347, 24);
			mnuImportProject.Text = "Import a work in progress";
			mnuImportProject.ToolTipText = "Import an RTF or TXT file with chapter headings and scenes separated by '* * *'";
			mnuImportSceneFile.Name = "mnuImportSceneFile";
			mnuImportSceneFile.Size = new System.Drawing.Size(347, 24);
			mnuImportSceneFile.Text = "Convert an outline into chapters and scenes";
			mnuImportSceneFile.ToolTipText = "One paragraph per scene. First sentence is the scene title, the rest is the description.";
			ToolStripSeparator6.Name = "ToolStripSeparator6";
			ToolStripSeparator6.Size = new System.Drawing.Size(344, 6);
			mnuImportyWriter2.Name = "mnuImportyWriter2";
			mnuImportyWriter2.Size = new System.Drawing.Size(347, 24);
			mnuImportyWriter2.Text = "Import yWriter2 Project";
			mnuImportyWriter3.Name = "mnuImportyWriter3";
			mnuImportyWriter3.Size = new System.Drawing.Size(347, 24);
			mnuImportyWriter3.Text = "Import yWriter3 Project";
			mnuImportyWriter4.Name = "mnuImportyWriter4";
			mnuImportyWriter4.Size = new System.Drawing.Size(347, 24);
			mnuImportyWriter4.Text = "Import yWriter4 Project";
			ImportDataToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[6]
			{
				ScenesToolStripMenuItem,
				ImportCharactersToolStripMenuItem,
				ImportLocationsToolStripMenuItem,
				ImportItemsToolStripMenuItem,
				ToolStripSeparator16,
				AppendYWriter5ProjectToolStripMenuItem
			});
			ImportDataToolStripMenuItem.Name = "ImportDataToolStripMenuItem";
			ImportDataToolStripMenuItem.Size = new System.Drawing.Size(278, 24);
			ImportDataToolStripMenuItem.Text = "Import into current project";
			ScenesToolStripMenuItem.Name = "ScenesToolStripMenuItem";
			ScenesToolStripMenuItem.Size = new System.Drawing.Size(233, 24);
			ScenesToolStripMenuItem.Text = "Scenes (RTF/TXT files)";
			ScenesToolStripMenuItem.ToolTipText = "Read one or more TXT or RTF files into the selected chapter as new scenes";
			ImportCharactersToolStripMenuItem.Name = "ImportCharactersToolStripMenuItem";
			ImportCharactersToolStripMenuItem.Size = new System.Drawing.Size(233, 24);
			ImportCharactersToolStripMenuItem.Text = "Characters";
			ImportCharactersToolStripMenuItem.ToolTipText = "Imports a yWriter 5 character export file";
			ImportLocationsToolStripMenuItem.Name = "ImportLocationsToolStripMenuItem";
			ImportLocationsToolStripMenuItem.Size = new System.Drawing.Size(233, 24);
			ImportLocationsToolStripMenuItem.Text = "Locations";
			ImportLocationsToolStripMenuItem.ToolTipText = "Imports a yWriter 5 location export file";
			ImportItemsToolStripMenuItem.Name = "ImportItemsToolStripMenuItem";
			ImportItemsToolStripMenuItem.Size = new System.Drawing.Size(233, 24);
			ImportItemsToolStripMenuItem.Text = "Items";
			ImportItemsToolStripMenuItem.ToolTipText = "Imports a yWriter 5 items export file";
			ToolStripSeparator16.Name = "ToolStripSeparator16";
			ToolStripSeparator16.Size = new System.Drawing.Size(230, 6);
			AppendYWriter5ProjectToolStripMenuItem.Name = "AppendYWriter5ProjectToolStripMenuItem";
			AppendYWriter5ProjectToolStripMenuItem.Size = new System.Drawing.Size(233, 24);
			AppendYWriter5ProjectToolStripMenuItem.Text = "Append yWriter 5 project";
			AppendYWriter5ProjectToolStripMenuItem.ToolTipText = "Appends another yWriter 5 project to this one";
			ApplyOutlineToolStripMenuItem.Name = "ApplyOutlineToolStripMenuItem";
			ApplyOutlineToolStripMenuItem.Size = new System.Drawing.Size(278, 24);
			ApplyOutlineToolStripMenuItem.Text = "Apply Outline";
			pbart.Name = "pbart";
			pbart.Size = new System.Drawing.Size(275, 6);
			mnuPrintProject.Name = "mnuPrintProject";
			mnuPrintProject.Size = new System.Drawing.Size(278, 24);
			mnuPrintProject.Text = "Print Project";
			ToolStripSeparator25.Name = "ToolStripSeparator25";
			ToolStripSeparator25.Size = new System.Drawing.Size(275, 6);
			mnuSaveProj.Name = "mnuSaveProj";
			mnuSaveProj.Size = new System.Drawing.Size(278, 24);
			mnuSaveProj.Text = "Save Project";
			mnuSaveAs.Name = "mnuSaveAs";
			mnuSaveAs.Size = new System.Drawing.Size(278, 24);
			mnuSaveAs.Text = "Save Project as...";
			mnuSaveAs.Visible = false;
			mnuExportProj.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[18]
			{
				mnuExportHTML,
				mnuCombineFiles,
				mnuExportToRTF,
				tsmExportRTFChapters,
				ToolStripSeparator29,
				tsbExportToLaTeX,
				LaTeXHelpToolStripMenuItem,
				ToolStripSeparator30,
				ToEbookToolStripMenuItem,
				ToEbooktoChaptersToolStripMenuItem,
				EbookHelpToolStripMenuItem,
				mnuExportNano,
				mnuExportOutline,
				mnuSaveSynopsis,
				mnuExportTimeline,
				mnuExportDesc,
				ToolStripSeparator31,
				EditCustomExportersToolStripMenuItem
			});
			mnuExportProj.Name = "mnuExportProj";
			mnuExportProj.Size = new System.Drawing.Size(278, 24);
			mnuExportProj.Text = "Export Project...";
			mnuExportHTML.Name = "mnuExportHTML";
			mnuExportHTML.Size = new System.Drawing.Size(268, 24);
			mnuExportHTML.Text = "to HTML";
			mnuCombineFiles.Name = "mnuCombineFiles";
			mnuCombineFiles.Size = new System.Drawing.Size(268, 24);
			mnuCombineFiles.Text = "to Text";
			mnuExportToRTF.Name = "mnuExportToRTF";
			mnuExportToRTF.Size = new System.Drawing.Size(268, 24);
			mnuExportToRTF.Text = "to RTF";
			tsmExportRTFChapters.Name = "tsmExportRTFChapters";
			tsmExportRTFChapters.Size = new System.Drawing.Size(268, 24);
			tsmExportRTFChapters.Text = "to RTF (One file per chapter)";
			ToolStripSeparator29.Name = "ToolStripSeparator29";
			ToolStripSeparator29.Size = new System.Drawing.Size(265, 6);
			tsbExportToLaTeX.Name = "tsbExportToLaTeX";
			tsbExportToLaTeX.Size = new System.Drawing.Size(268, 24);
			tsbExportToLaTeX.Text = "to LaTeX";
			LaTeXHelpToolStripMenuItem.Name = "LaTeXHelpToolStripMenuItem";
			LaTeXHelpToolStripMenuItem.Size = new System.Drawing.Size(268, 24);
			LaTeXHelpToolStripMenuItem.Text = "... LaTeX help";
			ToolStripSeparator30.Name = "ToolStripSeparator30";
			ToolStripSeparator30.Size = new System.Drawing.Size(265, 6);
			ToEbookToolStripMenuItem.Name = "ToEbookToolStripMenuItem";
			ToEbookToolStripMenuItem.Size = new System.Drawing.Size(268, 24);
			ToEbookToolStripMenuItem.Text = "to Ebook";
			ToEbookToolStripMenuItem.ToolTipText = "Creates one html file per chapter plus an index file. Suitable for importing into Calibre.";
			ToEbooktoChaptersToolStripMenuItem.Name = "ToEbooktoChaptersToolStripMenuItem";
			ToEbooktoChaptersToolStripMenuItem.Size = new System.Drawing.Size(268, 24);
			ToEbooktoChaptersToolStripMenuItem.Text = "to Ebook (chapters)";
			EbookHelpToolStripMenuItem.Name = "EbookHelpToolStripMenuItem";
			EbookHelpToolStripMenuItem.Size = new System.Drawing.Size(268, 24);
			EbookHelpToolStripMenuItem.Text = "... ebook help";
			mnuExportNano.Name = "mnuExportNano";
			mnuExportNano.Size = new System.Drawing.Size(268, 24);
			mnuExportNano.Text = "to Nanowrimo Obfuscated Text";
			mnuExportOutline.Name = "mnuExportOutline";
			mnuExportOutline.Size = new System.Drawing.Size(268, 24);
			mnuExportOutline.Text = "Outline";
			mnuSaveSynopsis.Name = "mnuSaveSynopsis";
			mnuSaveSynopsis.Size = new System.Drawing.Size(268, 24);
			mnuSaveSynopsis.Text = "Synopsis";
			mnuExportTimeline.Name = "mnuExportTimeline";
			mnuExportTimeline.Size = new System.Drawing.Size(268, 24);
			mnuExportTimeline.Text = "Synopsis with HTML Timeline";
			mnuExportDesc.Name = "mnuExportDesc";
			mnuExportDesc.Size = new System.Drawing.Size(268, 24);
			mnuExportDesc.Text = "Scene descriptions";
			ToolStripSeparator31.Name = "ToolStripSeparator31";
			ToolStripSeparator31.Size = new System.Drawing.Size(265, 6);
			EditCustomExportersToolStripMenuItem.Name = "EditCustomExportersToolStripMenuItem";
			EditCustomExportersToolStripMenuItem.Size = new System.Drawing.Size(268, 24);
			EditCustomExportersToolStripMenuItem.Text = "Edit Custom Exports";
			mnuExportSelectedChapters.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[2]
			{
				ToRTFToolStripMenuItem,
				ToYWriter5FormatToolStripMenuItem
			});
			mnuExportSelectedChapters.Name = "mnuExportSelectedChapters";
			mnuExportSelectedChapters.Size = new System.Drawing.Size(278, 24);
			mnuExportSelectedChapters.Text = "Export Selected Chapter(s)";
			ToRTFToolStripMenuItem.Name = "ToRTFToolStripMenuItem";
			ToRTFToolStripMenuItem.Size = new System.Drawing.Size(170, 24);
			ToRTFToolStripMenuItem.Text = "To RTF";
			ToYWriter5FormatToolStripMenuItem.Name = "ToYWriter5FormatToolStripMenuItem";
			ToYWriter5FormatToolStripMenuItem.Size = new System.Drawing.Size(170, 24);
			ToYWriter5FormatToolStripMenuItem.Text = "To YW5 format";
			ExportSelectedScenesToolStripMenuItem.Name = "ExportSelectedScenesToolStripMenuItem";
			ExportSelectedScenesToolStripMenuItem.Size = new System.Drawing.Size(278, 24);
			ExportSelectedScenesToolStripMenuItem.Text = "Export Selected Scene(s)";
			ExportSelectedScenesToolStripMenuItem.Visible = false;
			mnuExportData.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[5]
			{
				tsmExportChar,
				tsmExportLocations,
				tsmExportItems,
				ToolStripSeparator32,
				ProjectNotesToolStripMenuItem
			});
			mnuExportData.Name = "mnuExportData";
			mnuExportData.Size = new System.Drawing.Size(278, 24);
			mnuExportData.Text = "Export Data";
			tsmExportChar.Name = "tsmExportChar";
			tsmExportChar.Size = new System.Drawing.Size(160, 24);
			tsmExportChar.Text = "Characters";
			tsmExportLocations.Name = "tsmExportLocations";
			tsmExportLocations.Size = new System.Drawing.Size(160, 24);
			tsmExportLocations.Text = "Locations";
			tsmExportItems.Name = "tsmExportItems";
			tsmExportItems.Size = new System.Drawing.Size(160, 24);
			tsmExportItems.Text = "Items";
			ToolStripSeparator32.Name = "ToolStripSeparator32";
			ToolStripSeparator32.Size = new System.Drawing.Size(157, 6);
			ProjectNotesToolStripMenuItem.Name = "ProjectNotesToolStripMenuItem";
			ProjectNotesToolStripMenuItem.Size = new System.Drawing.Size(160, 24);
			ProjectNotesToolStripMenuItem.Text = "Project Notes";
			pbarm.Name = "pbarm";
			pbarm.Size = new System.Drawing.Size(275, 6);
			mnuCloseProject.Name = "mnuCloseProject";
			mnuCloseProject.Size = new System.Drawing.Size(278, 24);
			mnuCloseProject.Text = "Close Project";
			mnubar33.Name = "mnubar33";
			mnubar33.Size = new System.Drawing.Size(275, 6);
			LoadPreviousProjectOnStartupToolStripMenuItem.Checked = true;
			LoadPreviousProjectOnStartupToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
			LoadPreviousProjectOnStartupToolStripMenuItem.Name = "LoadPreviousProjectOnStartupToolStripMenuItem";
			LoadPreviousProjectOnStartupToolStripMenuItem.Size = new System.Drawing.Size(278, 24);
			LoadPreviousProjectOnStartupToolStripMenuItem.Text = "Load previous project on startup";
			mnuSettings.Name = "mnuSettings";
			mnuSettings.Size = new System.Drawing.Size(278, 24);
			mnuSettings.Text = "Project Settings";
			ToolStripSeparator7.Name = "ToolStripSeparator7";
			ToolStripSeparator7.Size = new System.Drawing.Size(275, 6);
			mnuConfirmExit.Name = "mnuConfirmExit";
			mnuConfirmExit.Size = new System.Drawing.Size(278, 24);
			mnuConfirmExit.Text = "Exit";
			mnuPrint.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[6]
			{
				mnuPrintWorkSched,
				SynopsisToolStripMenuItem,
				ToolStripSeparator15,
				mnuDailyWritingTargetToolStripMenuItem,
				OneDayWritingWorksheetToolStripMenuItem,
				SetReportWidthToolStripMenuItem
			});
			mnuPrint.Name = "mnuPrint";
			mnuPrint.Size = new System.Drawing.Size(68, 23);
			mnuPrint.Text = "Reports";
			mnuPrintWorkSched.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[5]
			{
				mnuPrintOnStatus0,
				mnuPrintOnStatus1,
				mnuPrintOnStatus2,
				mnuPrintOnStatus3,
				mnuPrintOnStatus4
			});
			mnuPrintWorkSched.Name = "mnuPrintWorkSched";
			mnuPrintWorkSched.Size = new System.Drawing.Size(243, 24);
			mnuPrintWorkSched.Text = "Work Schedule";
			mnuPrintOnStatus0.Name = "mnuPrintOnStatus0";
			mnuPrintOnStatus0.Size = new System.Drawing.Size(159, 24);
			mnuPrintOnStatus0.Tag = "0";
			mnuPrintOnStatus0.Text = "Complete";
			mnuPrintOnStatus1.Name = "mnuPrintOnStatus1";
			mnuPrintOnStatus1.Size = new System.Drawing.Size(159, 24);
			mnuPrintOnStatus1.Tag = "1";
			mnuPrintOnStatus1.Text = "Outline only";
			mnuPrintOnStatus2.Name = "mnuPrintOnStatus2";
			mnuPrintOnStatus2.Size = new System.Drawing.Size(159, 24);
			mnuPrintOnStatus2.Tag = "2";
			mnuPrintOnStatus2.Text = "Draft only";
			mnuPrintOnStatus3.Name = "mnuPrintOnStatus3";
			mnuPrintOnStatus3.Size = new System.Drawing.Size(159, 24);
			mnuPrintOnStatus3.Tag = "3";
			mnuPrintOnStatus3.Text = "1st Edit only";
			mnuPrintOnStatus4.Name = "mnuPrintOnStatus4";
			mnuPrintOnStatus4.Size = new System.Drawing.Size(159, 24);
			mnuPrintOnStatus4.Tag = "4";
			mnuPrintOnStatus4.Text = "2nd Edit only";
			SynopsisToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[3]
			{
				mnuPrintSummary,
				mnuPrintSynopsis,
				mnuPrintFullSynopsis
			});
			SynopsisToolStripMenuItem.Name = "SynopsisToolStripMenuItem";
			SynopsisToolStripMenuItem.Size = new System.Drawing.Size(243, 24);
			SynopsisToolStripMenuItem.Text = "Synopsis";
			mnuPrintSummary.Name = "mnuPrintSummary";
			mnuPrintSummary.Size = new System.Drawing.Size(320, 24);
			mnuPrintSummary.Text = "Summary (Short scene descriptions)";
			mnuPrintSynopsis.Name = "mnuPrintSynopsis";
			mnuPrintSynopsis.Size = new System.Drawing.Size(320, 24);
			mnuPrintSynopsis.Text = "Brief Synopsis (Long scene descriptions)";
			mnuPrintFullSynopsis.Name = "mnuPrintFullSynopsis";
			mnuPrintFullSynopsis.Size = new System.Drawing.Size(320, 24);
			mnuPrintFullSynopsis.Text = "Full Synopsis (Both descriptions)";
			ToolStripSeparator15.Name = "ToolStripSeparator15";
			ToolStripSeparator15.Size = new System.Drawing.Size(240, 6);
			mnuDailyWritingTargetToolStripMenuItem.Name = "mnuDailyWritingTargetToolStripMenuItem";
			mnuDailyWritingTargetToolStripMenuItem.Size = new System.Drawing.Size(243, 24);
			mnuDailyWritingTargetToolStripMenuItem.Text = "Daily Writing Target";
			OneDayWritingWorksheetToolStripMenuItem.Name = "OneDayWritingWorksheetToolStripMenuItem";
			OneDayWritingWorksheetToolStripMenuItem.Size = new System.Drawing.Size(243, 24);
			OneDayWritingWorksheetToolStripMenuItem.Text = "One day writing worksheet";
			OneDayWritingWorksheetToolStripMenuItem.ToolTipText = "Prints a generic writing worksheet";
			SetReportWidthToolStripMenuItem.Name = "SetReportWidthToolStripMenuItem";
			SetReportWidthToolStripMenuItem.Size = new System.Drawing.Size(243, 24);
			SetReportWidthToolStripMenuItem.Text = "Set report width";
			mnuSearch.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[7]
			{
				mnuFind,
				cmdFindNext,
				mnuFindPrev,
				mnubar3,
				mnuGlobalReplace,
				pbarxz,
				mnuNull
			});
			mnuSearch.Name = "mnuSearch";
			mnuSearch.Size = new System.Drawing.Size(61, 23);
			mnuSearch.Text = "Search";
			mnuFind.Name = "mnuFind";
			mnuFind.Size = new System.Drawing.Size(238, 24);
			mnuFind.Text = "Find (Ctrl-F)";
			cmdFindNext.Name = "cmdFindNext";
			cmdFindNext.Size = new System.Drawing.Size(238, 24);
			cmdFindNext.Text = "Find Next (F3)";
			mnuFindPrev.Name = "mnuFindPrev";
			mnuFindPrev.Size = new System.Drawing.Size(238, 24);
			mnuFindPrev.Text = "Find Previous (Shift-F3)";
			mnubar3.Name = "mnubar3";
			mnubar3.Size = new System.Drawing.Size(235, 6);
			mnuGlobalReplace.Name = "mnuGlobalReplace";
			mnuGlobalReplace.Size = new System.Drawing.Size(238, 24);
			mnuGlobalReplace.Text = "Global Search and Replace";
			pbarxz.Name = "pbarxz";
			pbarxz.Size = new System.Drawing.Size(235, 6);
			mnuNull.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[4]
			{
				mnuPredefined,
				mnuUD,
				UseF3ToFindNext,
				UseF5ToSwapForReplacementToolStripMenuItem
			});
			mnuNull.Name = "mnuNull";
			mnuNull.Size = new System.Drawing.Size(238, 24);
			mnuNull.Text = "Find 'Problem Words'";
			mnuPredefined.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[11]
			{
				mnuFindAs,
				mnuFindLy,
				mnuFindIng,
				mnuFindThen,
				mnuFindTurned,
				mnuFindGlanced,
				mnuFindMuttered,
				mnuFindSuddenly,
				mnuFindLooked,
				ToolStripSeparator28,
				DuplicateWordsToolStripMenuItem
			});
			mnuPredefined.Name = "mnuPredefined";
			mnuPredefined.Size = new System.Drawing.Size(272, 24);
			mnuPredefined.Text = "Predefined";
			mnuFindAs.Name = "mnuFindAs";
			mnuFindAs.Size = new System.Drawing.Size(179, 24);
			mnuFindAs.Text = "Find \". As \"";
			mnuFindLy.Name = "mnuFindLy";
			mnuFindLy.Size = new System.Drawing.Size(179, 24);
			mnuFindLy.Text = "Find \"ly \"";
			mnuFindIng.Name = "mnuFindIng";
			mnuFindIng.Size = new System.Drawing.Size(179, 24);
			mnuFindIng.Text = "Find \"ing \"";
			mnuFindThen.Name = "mnuFindThen";
			mnuFindThen.Size = new System.Drawing.Size(179, 24);
			mnuFindThen.Text = "Find \" then \"";
			mnuFindTurned.Name = "mnuFindTurned";
			mnuFindTurned.Size = new System.Drawing.Size(179, 24);
			mnuFindTurned.Text = "Find \" turned\"";
			mnuFindGlanced.Name = "mnuFindGlanced";
			mnuFindGlanced.Size = new System.Drawing.Size(179, 24);
			mnuFindGlanced.Text = "Find \" glanced\"";
			mnuFindMuttered.Name = "mnuFindMuttered";
			mnuFindMuttered.Size = new System.Drawing.Size(179, 24);
			mnuFindMuttered.Text = "Find \" muttered\"";
			mnuFindSuddenly.Name = "mnuFindSuddenly";
			mnuFindSuddenly.Size = new System.Drawing.Size(179, 24);
			mnuFindSuddenly.Text = "Find \"Suddenly\"";
			mnuFindLooked.Name = "mnuFindLooked";
			mnuFindLooked.Size = new System.Drawing.Size(179, 24);
			mnuFindLooked.Text = "Find \"looked\"";
			ToolStripSeparator28.Name = "ToolStripSeparator28";
			ToolStripSeparator28.Size = new System.Drawing.Size(176, 6);
			DuplicateWordsToolStripMenuItem.Name = "DuplicateWordsToolStripMenuItem";
			DuplicateWordsToolStripMenuItem.Size = new System.Drawing.Size(179, 24);
			DuplicateWordsToolStripMenuItem.Text = "Duplicate words";
			DuplicateWordsToolStripMenuItem.ToolTipText = "Two identical sequential words";
			mnuUD.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[1]
			{
				_mnuUDW_0
			});
			mnuUD.Name = "mnuUD";
			mnuUD.Size = new System.Drawing.Size(272, 24);
			mnuUD.Text = "User Defined";
			_mnuUDW_0.Name = "_mnuUDW_0";
			_mnuUDW_0.Size = new System.Drawing.Size(245, 24);
			_mnuUDW_0.Text = "Define your problem words";
			UseF3ToFindNext.Enabled = false;
			UseF3ToFindNext.Name = "UseF3ToFindNext";
			UseF3ToFindNext.Size = new System.Drawing.Size(272, 24);
			UseF3ToFindNext.Text = "Use F3 to find next";
			UseF5ToSwapForReplacementToolStripMenuItem.Enabled = false;
			UseF5ToSwapForReplacementToolStripMenuItem.Name = "UseF5ToSwapForReplacementToolStripMenuItem";
			UseF5ToSwapForReplacementToolStripMenuItem.Size = new System.Drawing.Size(272, 24);
			UseF5ToSwapForReplacementToolStripMenuItem.Text = "Use F5 to swap for replacement";
			mnuChapters.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[17]
			{
				mnuChapterNew,
				mnuChapterMultiNew,
				mnuEditChapter,
				pbardash,
				mnuMarkEndBeginning,
				mnuMarkEndMiddle,
				mnuRenumber,
				mnuChapbar,
				mnuMarkChaptersUnused,
				ToggleChapterOtherToolStripMenuItem,
				ToolStripSeparator8,
				CombineSelectedChaptersToolStripMenuItem,
				mnuRemoveChapter,
				SetupBooksAndPartsToolStripMenuItem,
				ToolStripSeparator27,
				tsmChapterReportsToolStripMenuItem,
				tsmExportSingleChapter
			});
			mnuChapters.Name = "mnuChapters";
			mnuChapters.Size = new System.Drawing.Size(70, 23);
			mnuChapters.Text = "Chapter";
			mnuChapterNew.Name = "mnuChapterNew";
			mnuChapterNew.Size = new System.Drawing.Size(273, 24);
			mnuChapterNew.Text = "Create new chapter";
			mnuChapterMultiNew.Name = "mnuChapterMultiNew";
			mnuChapterMultiNew.Size = new System.Drawing.Size(273, 24);
			mnuChapterMultiNew.Text = "Create multiple chapters";
			mnuEditChapter.Name = "mnuEditChapter";
			mnuEditChapter.Size = new System.Drawing.Size(273, 24);
			mnuEditChapter.Text = "Edit selected chapter";
			pbardash.Name = "pbardash";
			pbardash.Size = new System.Drawing.Size(270, 6);
			mnuMarkEndBeginning.Name = "mnuMarkEndBeginning";
			mnuMarkEndBeginning.Size = new System.Drawing.Size(273, 24);
			mnuMarkEndBeginning.Text = "Mark as start of middle section";
			mnuMarkEndMiddle.Name = "mnuMarkEndMiddle";
			mnuMarkEndMiddle.Size = new System.Drawing.Size(273, 24);
			mnuMarkEndMiddle.Text = "Mark as start of the end section";
			mnuRenumber.Name = "mnuRenumber";
			mnuRenumber.Size = new System.Drawing.Size(273, 24);
			mnuRenumber.Text = "Renumber chapters";
			mnuChapbar.Name = "mnuChapbar";
			mnuChapbar.Size = new System.Drawing.Size(270, 6);
			mnuMarkChaptersUnused.Name = "mnuMarkChaptersUnused";
			mnuMarkChaptersUnused.Size = new System.Drawing.Size(273, 24);
			mnuMarkChaptersUnused.Text = "Toggle Used/Unused";
			ToggleChapterOtherToolStripMenuItem.Name = "ToggleChapterOtherToolStripMenuItem";
			ToggleChapterOtherToolStripMenuItem.Size = new System.Drawing.Size(273, 24);
			ToggleChapterOtherToolStripMenuItem.Text = "Toggle Chapter/Other";
			ToolStripSeparator8.Name = "ToolStripSeparator8";
			ToolStripSeparator8.Size = new System.Drawing.Size(270, 6);
			CombineSelectedChaptersToolStripMenuItem.Name = "CombineSelectedChaptersToolStripMenuItem";
			CombineSelectedChaptersToolStripMenuItem.Size = new System.Drawing.Size(273, 24);
			CombineSelectedChaptersToolStripMenuItem.Text = "Combine selected chapters";
			mnuRemoveChapter.Name = "mnuRemoveChapter";
			mnuRemoveChapter.Size = new System.Drawing.Size(273, 24);
			mnuRemoveChapter.Text = "Remove selected chapter(s)";
			SetupBooksAndPartsToolStripMenuItem.Name = "SetupBooksAndPartsToolStripMenuItem";
			SetupBooksAndPartsToolStripMenuItem.Size = new System.Drawing.Size(273, 24);
			SetupBooksAndPartsToolStripMenuItem.Text = "Setup Books and Parts";
			ToolStripSeparator27.Name = "ToolStripSeparator27";
			ToolStripSeparator27.Size = new System.Drawing.Size(270, 6);
			tsmChapterReportsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[2]
			{
				mnuPrintSelectedChapters,
				mnuPrintChapterNotes
			});
			tsmChapterReportsToolStripMenuItem.Name = "tsmChapterReportsToolStripMenuItem";
			tsmChapterReportsToolStripMenuItem.Size = new System.Drawing.Size(273, 24);
			tsmChapterReportsToolStripMenuItem.Text = "Reports";
			mnuPrintSelectedChapters.Name = "mnuPrintSelectedChapters";
			mnuPrintSelectedChapters.Size = new System.Drawing.Size(234, 24);
			mnuPrintSelectedChapters.Text = "Print selected chapter(s)";
			mnuPrintChapterNotes.Name = "mnuPrintChapterNotes";
			mnuPrintChapterNotes.Size = new System.Drawing.Size(234, 24);
			mnuPrintChapterNotes.Text = "Print chapter descriptions";
			tsmExportSingleChapter.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[4]
			{
				ExportChapterToolStripMenuItem,
				ImportChapterToolStripMenuItem,
				ToolStripSeparator33,
				HelpToolStripMenuItem
			});
			tsmExportSingleChapter.Name = "tsmExportSingleChapter";
			tsmExportSingleChapter.Size = new System.Drawing.Size(273, 24);
			tsmExportSingleChapter.Text = "Proofing";
			ExportChapterToolStripMenuItem.Name = "ExportChapterToolStripMenuItem";
			ExportChapterToolStripMenuItem.Size = new System.Drawing.Size(311, 24);
			ExportChapterToolStripMenuItem.Text = "Export selected chapter(s) for proofing";
			ImportChapterToolStripMenuItem.Name = "ImportChapterToolStripMenuItem";
			ImportChapterToolStripMenuItem.Size = new System.Drawing.Size(311, 24);
			ImportChapterToolStripMenuItem.Text = "Import proofed chapter(s)";
			ToolStripSeparator33.Name = "ToolStripSeparator33";
			ToolStripSeparator33.Size = new System.Drawing.Size(308, 6);
			HelpToolStripMenuItem.Name = "HelpToolStripMenuItem";
			HelpToolStripMenuItem.Size = new System.Drawing.Size(311, 24);
			HelpToolStripMenuItem.Text = "Help";
			mnuScene.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[18]
			{
				mnuAddScene,
				mnuAddMultiScenes,
				mnuEditScene,
				pbarsc1,
				mnuSetStatus,
				mnuUsedUnused,
				ToolStripSeparator3,
				mnuSetAllSceneFont,
				RemoveFormattingFromAllScenesToolStripMenuItem,
				RenumberScenesToolStripMenuItem,
				ToolStripSeparator9,
				CombineSelectedScenesToolStripMenuItem,
				mnuRemoveScene,
				DeleteDuplicateScenesToolStripMenuItem,
				DeleteOrphanScenesToolStripMenuItem,
				ToolStripSeparator23,
				tsmSceneReportsToolStripMenuItem,
				CopyFirstLineToSceneTitleSelectedScenesToolStripMenuItem
			});
			mnuScene.Name = "mnuScene";
			mnuScene.Size = new System.Drawing.Size(56, 23);
			mnuScene.Text = "Scene";
			mnuScene.ToolTipText = "You must add one or more chapters before you can create new scenes";
			mnuAddScene.Name = "mnuAddScene";
			mnuAddScene.Size = new System.Drawing.Size(290, 24);
			mnuAddScene.Text = "Create new scene";
			mnuAddMultiScenes.Name = "mnuAddMultiScenes";
			mnuAddMultiScenes.Size = new System.Drawing.Size(290, 24);
			mnuAddMultiScenes.Text = "Create multiple scenes";
			mnuEditScene.Name = "mnuEditScene";
			mnuEditScene.Size = new System.Drawing.Size(290, 24);
			mnuEditScene.Text = "Edit selected scene";
			pbarsc1.Name = "pbarsc1";
			pbarsc1.Size = new System.Drawing.Size(287, 6);
			mnuSetStatus.Name = "mnuSetStatus";
			mnuSetStatus.Size = new System.Drawing.Size(290, 24);
			mnuSetStatus.Text = "Set Completion Status";
			mnuUsedUnused.Name = "mnuUsedUnused";
			mnuUsedUnused.Size = new System.Drawing.Size(290, 24);
			mnuUsedUnused.Text = "Toggle Used/Unused";
			ToolStripSeparator3.Name = "ToolStripSeparator3";
			ToolStripSeparator3.Size = new System.Drawing.Size(287, 6);
			mnuSetAllSceneFont.Name = "mnuSetAllSceneFont";
			mnuSetAllSceneFont.Size = new System.Drawing.Size(290, 24);
			mnuSetAllSceneFont.Text = "Set font across all scenes";
			RemoveFormattingFromAllScenesToolStripMenuItem.Name = "RemoveFormattingFromAllScenesToolStripMenuItem";
			RemoveFormattingFromAllScenesToolStripMenuItem.Size = new System.Drawing.Size(290, 24);
			RemoveFormattingFromAllScenesToolStripMenuItem.Text = "Remove formatting from all scenes";
			RenumberScenesToolStripMenuItem.Name = "RenumberScenesToolStripMenuItem";
			RenumberScenesToolStripMenuItem.Size = new System.Drawing.Size(290, 24);
			RenumberScenesToolStripMenuItem.Text = "Renumber scenes";
			ToolStripSeparator9.Name = "ToolStripSeparator9";
			ToolStripSeparator9.Size = new System.Drawing.Size(287, 6);
			CombineSelectedScenesToolStripMenuItem.Name = "CombineSelectedScenesToolStripMenuItem";
			CombineSelectedScenesToolStripMenuItem.Size = new System.Drawing.Size(290, 24);
			CombineSelectedScenesToolStripMenuItem.Text = "Combine selected scenes";
			mnuRemoveScene.Name = "mnuRemoveScene";
			mnuRemoveScene.Size = new System.Drawing.Size(290, 24);
			mnuRemoveScene.Text = "Remove selected scene(s)";
			mnuRemoveScene.ToolTipText = "Removing a scene will not delete the RTF file with the content ... just in case.";
			DeleteDuplicateScenesToolStripMenuItem.Name = "DeleteDuplicateScenesToolStripMenuItem";
			DeleteDuplicateScenesToolStripMenuItem.Size = new System.Drawing.Size(290, 24);
			DeleteDuplicateScenesToolStripMenuItem.Text = "Delete duplicate scenes";
			DeleteOrphanScenesToolStripMenuItem.Name = "DeleteOrphanScenesToolStripMenuItem";
			DeleteOrphanScenesToolStripMenuItem.Size = new System.Drawing.Size(290, 24);
			DeleteOrphanScenesToolStripMenuItem.Text = "Delete orphan scenes";
			DeleteOrphanScenesToolStripMenuItem.ToolTipText = "Removes any stray scenes which don't belong to a chapter";
			ToolStripSeparator23.Name = "ToolStripSeparator23";
			ToolStripSeparator23.Size = new System.Drawing.Size(287, 6);
			tsmSceneReportsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[5]
			{
				mnuPrintScene,
				mnuPrintSceneNotes,
				mnuPrintSceneCards,
				PrintsScenesPerTagToolStripMenuItem,
				PrintSceneListToolStripMenuItem
			});
			tsmSceneReportsToolStripMenuItem.Name = "tsmSceneReportsToolStripMenuItem";
			tsmSceneReportsToolStripMenuItem.Size = new System.Drawing.Size(290, 24);
			tsmSceneReportsToolStripMenuItem.Text = "Reports";
			mnuPrintScene.Name = "mnuPrintScene";
			mnuPrintScene.Size = new System.Drawing.Size(212, 24);
			mnuPrintScene.Text = "Print selected scene(s)";
			mnuPrintSceneNotes.Name = "mnuPrintSceneNotes";
			mnuPrintSceneNotes.Size = new System.Drawing.Size(212, 24);
			mnuPrintSceneNotes.Text = "Print scene notes";
			mnuPrintSceneCards.Name = "mnuPrintSceneCards";
			mnuPrintSceneCards.Size = new System.Drawing.Size(212, 24);
			mnuPrintSceneCards.Text = "Print scene cards";
			PrintsScenesPerTagToolStripMenuItem.Name = "PrintsScenesPerTagToolStripMenuItem";
			PrintsScenesPerTagToolStripMenuItem.Size = new System.Drawing.Size(212, 24);
			PrintsScenesPerTagToolStripMenuItem.Text = "Print scenes per tag";
			PrintSceneListToolStripMenuItem.Name = "PrintSceneListToolStripMenuItem";
			PrintSceneListToolStripMenuItem.Size = new System.Drawing.Size(212, 24);
			PrintSceneListToolStripMenuItem.Text = "Print scene list";
			CopyFirstLineToSceneTitleSelectedScenesToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[3]
			{
				SelectedScenesToolStripMenuItem,
				SelectedChaptersToolStripMenuItem,
				AllScenesToolStripMenuItem
			});
			CopyFirstLineToSceneTitleSelectedScenesToolStripMenuItem.Name = "CopyFirstLineToSceneTitleSelectedScenesToolStripMenuItem";
			CopyFirstLineToSceneTitleSelectedScenesToolStripMenuItem.Size = new System.Drawing.Size(290, 24);
			CopyFirstLineToSceneTitleSelectedScenesToolStripMenuItem.Text = "Copy first line to scene title";
			SelectedScenesToolStripMenuItem.Name = "SelectedScenesToolStripMenuItem";
			SelectedScenesToolStripMenuItem.Size = new System.Drawing.Size(199, 24);
			SelectedScenesToolStripMenuItem.Text = "Selected scenes";
			SelectedChaptersToolStripMenuItem.Name = "SelectedChaptersToolStripMenuItem";
			SelectedChaptersToolStripMenuItem.Size = new System.Drawing.Size(199, 24);
			SelectedChaptersToolStripMenuItem.Text = "In selected chapters";
			AllScenesToolStripMenuItem.Name = "AllScenesToolStripMenuItem";
			AllScenesToolStripMenuItem.Size = new System.Drawing.Size(199, 24);
			AllScenesToolStripMenuItem.Text = "All Scenes";
			mnuChar.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[9]
			{
				AddNewCharToolStripMenuItem,
				mnuEditChar,
				mnuAddCharToScene,
				AutomaticallyAddCharactersToScenesToolStripMenuItem,
				ToolStripSeparator14,
				mnuScenesPerCharacter,
				mnuWordsPerCharacter,
				ToolStripSeparator21,
				tsmCharReportsToolStripMenuItem
			});
			mnuChar.Name = "mnuChar";
			mnuChar.Size = new System.Drawing.Size(86, 23);
			mnuChar.Text = "Characters";
			AddNewCharToolStripMenuItem.Name = "AddNewCharToolStripMenuItem";
			AddNewCharToolStripMenuItem.Size = new System.Drawing.Size(315, 24);
			AddNewCharToolStripMenuItem.Text = "Add new";
			mnuEditChar.Name = "mnuEditChar";
			mnuEditChar.Size = new System.Drawing.Size(315, 24);
			mnuEditChar.Text = "View/Edit";
			mnuAddCharToScene.Name = "mnuAddCharToScene";
			mnuAddCharToScene.Size = new System.Drawing.Size(315, 24);
			mnuAddCharToScene.Text = "Add to current scene";
			AutomaticallyAddCharactersToScenesToolStripMenuItem.Name = "AutomaticallyAddCharactersToScenesToolStripMenuItem";
			AutomaticallyAddCharactersToScenesToolStripMenuItem.Size = new System.Drawing.Size(315, 24);
			AutomaticallyAddCharactersToScenesToolStripMenuItem.Text = "Automatically add characters to scenes";
			ToolStripSeparator14.Name = "ToolStripSeparator14";
			ToolStripSeparator14.Size = new System.Drawing.Size(312, 6);
			mnuScenesPerCharacter.Name = "mnuScenesPerCharacter";
			mnuScenesPerCharacter.Size = new System.Drawing.Size(315, 24);
			mnuScenesPerCharacter.Text = "Show scenes per character";
			mnuWordsPerCharacter.Name = "mnuWordsPerCharacter";
			mnuWordsPerCharacter.Size = new System.Drawing.Size(315, 24);
			mnuWordsPerCharacter.Text = "Show word count per character";
			ToolStripSeparator21.Name = "ToolStripSeparator21";
			ToolStripSeparator21.Size = new System.Drawing.Size(312, 6);
			tsmCharReportsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[3]
			{
				mnuPrintChar,
				PrintScenesPerCharacterToolStripMenuItem,
				PrintCharactersPerTagToolStripMenuItem
			});
			tsmCharReportsToolStripMenuItem.Name = "tsmCharReportsToolStripMenuItem";
			tsmCharReportsToolStripMenuItem.Size = new System.Drawing.Size(315, 24);
			tsmCharReportsToolStripMenuItem.Text = "Reports";
			mnuPrintChar.Name = "mnuPrintChar";
			mnuPrintChar.Size = new System.Drawing.Size(239, 24);
			mnuPrintChar.Text = "Print Character List";
			PrintScenesPerCharacterToolStripMenuItem.Name = "PrintScenesPerCharacterToolStripMenuItem";
			PrintScenesPerCharacterToolStripMenuItem.Size = new System.Drawing.Size(239, 24);
			PrintScenesPerCharacterToolStripMenuItem.Text = "Print Scenes per Character";
			PrintCharactersPerTagToolStripMenuItem.Name = "PrintCharactersPerTagToolStripMenuItem";
			PrintCharactersPerTagToolStripMenuItem.Size = new System.Drawing.Size(239, 24);
			PrintCharactersPerTagToolStripMenuItem.Text = "Print Characters per Tag";
			mnuLocations.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[6]
			{
				AddNewLocToolStripMenuItem,
				mnuAddLocation,
				mnuAddLocToCurrentScene,
				AutomaticallyAddLocationsToScenesToolStripMenuItem,
				ToolStripSeparator19,
				tsmLocReportsToolStripMenuItem
			});
			mnuLocations.Name = "mnuLocations";
			mnuLocations.Size = new System.Drawing.Size(79, 23);
			mnuLocations.Text = "Locations";
			AddNewLocToolStripMenuItem.Name = "AddNewLocToolStripMenuItem";
			AddNewLocToolStripMenuItem.Size = new System.Drawing.Size(307, 24);
			AddNewLocToolStripMenuItem.Text = "Add new";
			mnuAddLocation.Name = "mnuAddLocation";
			mnuAddLocation.Size = new System.Drawing.Size(307, 24);
			mnuAddLocation.Text = "View/Edit";
			mnuAddLocToCurrentScene.Name = "mnuAddLocToCurrentScene";
			mnuAddLocToCurrentScene.Size = new System.Drawing.Size(307, 24);
			mnuAddLocToCurrentScene.Text = "Add location to current scene";
			AutomaticallyAddLocationsToScenesToolStripMenuItem.Name = "AutomaticallyAddLocationsToScenesToolStripMenuItem";
			AutomaticallyAddLocationsToScenesToolStripMenuItem.Size = new System.Drawing.Size(307, 24);
			AutomaticallyAddLocationsToScenesToolStripMenuItem.Text = "Automatically add locations to scenes";
			ToolStripSeparator19.Name = "ToolStripSeparator19";
			ToolStripSeparator19.Size = new System.Drawing.Size(304, 6);
			tsmLocReportsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[3]
			{
				mnuPrintLocationList,
				PrintScenesPerLocationToolStripMenuItem,
				PrintLocationsPerTagToolStripMenuItem
			});
			tsmLocReportsToolStripMenuItem.Name = "tsmLocReportsToolStripMenuItem";
			tsmLocReportsToolStripMenuItem.Size = new System.Drawing.Size(307, 24);
			tsmLocReportsToolStripMenuItem.Text = "Reports";
			mnuPrintLocationList.Name = "mnuPrintLocationList";
			mnuPrintLocationList.Size = new System.Drawing.Size(232, 24);
			mnuPrintLocationList.Text = "Print Location List";
			PrintScenesPerLocationToolStripMenuItem.Name = "PrintScenesPerLocationToolStripMenuItem";
			PrintScenesPerLocationToolStripMenuItem.Size = new System.Drawing.Size(232, 24);
			PrintScenesPerLocationToolStripMenuItem.Text = "Print Scenes per Location";
			PrintLocationsPerTagToolStripMenuItem.Name = "PrintLocationsPerTagToolStripMenuItem";
			PrintLocationsPerTagToolStripMenuItem.Size = new System.Drawing.Size(232, 24);
			PrintLocationsPerTagToolStripMenuItem.Text = "Print Locations per Tag";
			mnuItems.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[6]
			{
				AddNewItemToolStripMenuItem,
				mnuAddItem,
				mnuAddItemToCurrentScene,
				AutomaticallyAddItemsToScenesToolStripMenuItem,
				ToolStripSeparator20,
				tsmItemReportsToolStripMenuItem
			});
			mnuItems.Name = "mnuItems";
			mnuItems.Size = new System.Drawing.Size(55, 23);
			mnuItems.Text = "Items";
			AddNewItemToolStripMenuItem.Name = "AddNewItemToolStripMenuItem";
			AddNewItemToolStripMenuItem.Size = new System.Drawing.Size(286, 24);
			AddNewItemToolStripMenuItem.Text = "Add new";
			mnuAddItem.Name = "mnuAddItem";
			mnuAddItem.Size = new System.Drawing.Size(286, 24);
			mnuAddItem.Text = "View/Edit";
			mnuAddItemToCurrentScene.Name = "mnuAddItemToCurrentScene";
			mnuAddItemToCurrentScene.Size = new System.Drawing.Size(286, 24);
			mnuAddItemToCurrentScene.Text = "Add item to current scene";
			AutomaticallyAddItemsToScenesToolStripMenuItem.Name = "AutomaticallyAddItemsToScenesToolStripMenuItem";
			AutomaticallyAddItemsToScenesToolStripMenuItem.Size = new System.Drawing.Size(286, 24);
			AutomaticallyAddItemsToScenesToolStripMenuItem.Text = "Automatically add items to scenes";
			ToolStripSeparator20.Name = "ToolStripSeparator20";
			ToolStripSeparator20.Size = new System.Drawing.Size(283, 6);
			tsmItemReportsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[3]
			{
				mnuPrintItemList,
				PrintScenesPerItemToolStripMenuItem,
				PrintItemsPerTagToolStripMenuItem
			});
			tsmItemReportsToolStripMenuItem.Name = "tsmItemReportsToolStripMenuItem";
			tsmItemReportsToolStripMenuItem.Size = new System.Drawing.Size(286, 24);
			tsmItemReportsToolStripMenuItem.Text = "Reports";
			mnuPrintItemList.Name = "mnuPrintItemList";
			mnuPrintItemList.Size = new System.Drawing.Size(208, 24);
			mnuPrintItemList.Text = "Print Item List";
			PrintScenesPerItemToolStripMenuItem.Name = "PrintScenesPerItemToolStripMenuItem";
			PrintScenesPerItemToolStripMenuItem.Size = new System.Drawing.Size(208, 24);
			PrintScenesPerItemToolStripMenuItem.Text = "Print Scenes per Item";
			PrintItemsPerTagToolStripMenuItem.Name = "PrintItemsPerTagToolStripMenuItem";
			PrintItemsPerTagToolStripMenuItem.Size = new System.Drawing.Size(208, 24);
			PrintItemsPerTagToolStripMenuItem.Text = "Print Items per Tag";
			mnuTools.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[21]
			{
				mnuStoryboard,
				mnuSceneList,
				mnuSceneGrid,
				mnuChart,
				mnuWordUsageCount,
				ForceWordcountToolStripMenuItem,
				ToolStripSeparator36,
				GlobalVariablesToolStripMenuItem,
				ProjectVariablesToolStripMenuItem,
				Pbarnone,
				mnuWordTarget,
				tsmDailyLog,
				sep1,
				mnuBackupMenu,
				mnuDebugMenu,
				mnuUIFont,
				mnuUIFontSize,
				toolsbar,
				CollaborationToolStripMenuItem,
				sepCollab,
				mnuCheckVersion
			});
			mnuTools.Name = "mnuTools";
			mnuTools.Size = new System.Drawing.Size(52, 23);
			mnuTools.Text = "Tools";
			mnuStoryboard.Name = "mnuStoryboard";
			mnuStoryboard.Size = new System.Drawing.Size(245, 24);
			mnuStoryboard.Text = "Storyboard";
			mnuSceneList.Name = "mnuSceneList";
			mnuSceneList.Size = new System.Drawing.Size(245, 24);
			mnuSceneList.Text = "Display scene list";
			mnuSceneGrid.Name = "mnuSceneGrid";
			mnuSceneGrid.Size = new System.Drawing.Size(245, 24);
			mnuSceneGrid.Text = "Display scene grid";
			mnuChart.Name = "mnuChart";
			mnuChart.Size = new System.Drawing.Size(245, 24);
			mnuChart.Text = "Scene Ratings Chart";
			mnuWordUsageCount.Name = "mnuWordUsageCount";
			mnuWordUsageCount.Size = new System.Drawing.Size(245, 24);
			mnuWordUsageCount.Text = "Show Word Usage Count";
			ForceWordcountToolStripMenuItem.Name = "ForceWordcountToolStripMenuItem";
			ForceWordcountToolStripMenuItem.Size = new System.Drawing.Size(245, 24);
			ForceWordcountToolStripMenuItem.Text = "Force wordcount";
			ToolStripSeparator36.Name = "ToolStripSeparator36";
			ToolStripSeparator36.Size = new System.Drawing.Size(242, 6);
			GlobalVariablesToolStripMenuItem.Name = "GlobalVariablesToolStripMenuItem";
			GlobalVariablesToolStripMenuItem.Size = new System.Drawing.Size(245, 24);
			GlobalVariablesToolStripMenuItem.Text = "Global variables";
			ProjectVariablesToolStripMenuItem.Name = "ProjectVariablesToolStripMenuItem";
			ProjectVariablesToolStripMenuItem.Size = new System.Drawing.Size(245, 24);
			ProjectVariablesToolStripMenuItem.Text = "Project Variables";
			Pbarnone.Name = "Pbarnone";
			Pbarnone.Size = new System.Drawing.Size(242, 6);
			mnuWordTarget.Name = "mnuWordTarget";
			mnuWordTarget.Size = new System.Drawing.Size(245, 24);
			mnuWordTarget.Text = "Daily Word Count Target";
			tsmDailyLog.Name = "tsmDailyLog";
			tsmDailyLog.Size = new System.Drawing.Size(245, 24);
			tsmDailyLog.Text = "Daily progress log";
			sep1.Name = "sep1";
			sep1.Size = new System.Drawing.Size(242, 6);
			mnuBackupMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[16]
			{
				mnuBackupProject,
				ConfigureAlternativeBackupFolderToolStripMenuItem,
				ToolStripSeparator38,
				mnuSaveToSingleFile,
				mnuSetupAutobackup,
				mnuAutobackups,
				ToolStripSeparator13,
				DailyBackupToolStripMenuItem,
				RestoreAutobackupToolStripMenuItem,
				ToolStripSeparator10,
				ConfigureFTPSitesToolStripMenuItem,
				BackupToFTPToolStripMenuItem,
				ToolStripSeparator37,
				ConfigureSMTPServerToolStripMenuItem,
				ConfigureRecipientEmailToolStripMenuItem,
				BackupToEmailToolStripMenuItem
			});
			mnuBackupMenu.Name = "mnuBackupMenu";
			mnuBackupMenu.Size = new System.Drawing.Size(245, 24);
			mnuBackupMenu.Text = "Backups";
			mnuBackupProject.Name = "mnuBackupProject";
			mnuBackupProject.Size = new System.Drawing.Size(322, 24);
			mnuBackupProject.Text = "Backup Entire Project";
			ConfigureAlternativeBackupFolderToolStripMenuItem.Name = "ConfigureAlternativeBackupFolderToolStripMenuItem";
			ConfigureAlternativeBackupFolderToolStripMenuItem.Size = new System.Drawing.Size(322, 24);
			ConfigureAlternativeBackupFolderToolStripMenuItem.Text = "Configure alternative backup folder";
			ToolStripSeparator38.Name = "ToolStripSeparator38";
			ToolStripSeparator38.Size = new System.Drawing.Size(319, 6);
			mnuSaveToSingleFile.Name = "mnuSaveToSingleFile";
			mnuSaveToSingleFile.Size = new System.Drawing.Size(322, 24);
			mnuSaveToSingleFile.Text = "Save project content to single file";
			mnuSaveToSingleFile.Visible = false;
			mnuSetupAutobackup.Name = "mnuSetupAutobackup";
			mnuSetupAutobackup.Size = new System.Drawing.Size(322, 24);
			mnuSetupAutobackup.Text = "Set scene editor Autobackup options";
			mnuAutobackups.Name = "mnuAutobackups";
			mnuAutobackups.Size = new System.Drawing.Size(322, 24);
			mnuAutobackups.Text = "View Autobackups";
			ToolStripSeparator13.Name = "ToolStripSeparator13";
			ToolStripSeparator13.Size = new System.Drawing.Size(319, 6);
			DailyBackupToolStripMenuItem.Checked = true;
			DailyBackupToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
			DailyBackupToolStripMenuItem.Name = "DailyBackupToolStripMenuItem";
			DailyBackupToolStripMenuItem.Size = new System.Drawing.Size(322, 24);
			DailyBackupToolStripMenuItem.Text = "Automatic daily backup of entire project";
			RestoreAutobackupToolStripMenuItem.Name = "RestoreAutobackupToolStripMenuItem";
			RestoreAutobackupToolStripMenuItem.Size = new System.Drawing.Size(322, 24);
			RestoreAutobackupToolStripMenuItem.Text = "Restore Autobackup";
			ToolStripSeparator10.Name = "ToolStripSeparator10";
			ToolStripSeparator10.Size = new System.Drawing.Size(319, 6);
			ConfigureFTPSitesToolStripMenuItem.Name = "ConfigureFTPSitesToolStripMenuItem";
			ConfigureFTPSitesToolStripMenuItem.Size = new System.Drawing.Size(322, 24);
			ConfigureFTPSitesToolStripMenuItem.Text = "Configure FTP site(s)";
			BackupToFTPToolStripMenuItem.Name = "BackupToFTPToolStripMenuItem";
			BackupToFTPToolStripMenuItem.Size = new System.Drawing.Size(322, 24);
			BackupToFTPToolStripMenuItem.Text = "Backup to FTP";
			ToolStripSeparator37.Name = "ToolStripSeparator37";
			ToolStripSeparator37.Size = new System.Drawing.Size(319, 6);
			ConfigureSMTPServerToolStripMenuItem.Enabled = false;
			ConfigureSMTPServerToolStripMenuItem.Name = "ConfigureSMTPServerToolStripMenuItem";
			ConfigureSMTPServerToolStripMenuItem.Size = new System.Drawing.Size(322, 24);
			ConfigureSMTPServerToolStripMenuItem.Text = "Configure SMTP server";
			ConfigureRecipientEmailToolStripMenuItem.Enabled = false;
			ConfigureRecipientEmailToolStripMenuItem.Name = "ConfigureRecipientEmailToolStripMenuItem";
			ConfigureRecipientEmailToolStripMenuItem.Size = new System.Drawing.Size(322, 24);
			ConfigureRecipientEmailToolStripMenuItem.Text = "Configure Recipient Email";
			BackupToEmailToolStripMenuItem.Enabled = false;
			BackupToEmailToolStripMenuItem.Name = "BackupToEmailToolStripMenuItem";
			BackupToEmailToolStripMenuItem.Size = new System.Drawing.Size(322, 24);
			BackupToEmailToolStripMenuItem.Text = "Backup to Email";
			mnuDebugMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[5]
			{
				mnuCreateDebug,
				mnuViewLog,
				CheckForBETAVersionToolStripMenuItem,
				OpenSettingsFolderToolStripMenuItem,
				TriggerErrorToolStripMenuItem
			});
			mnuDebugMenu.Name = "mnuDebugMenu";
			mnuDebugMenu.Size = new System.Drawing.Size(245, 24);
			mnuDebugMenu.Text = "Debug";
			mnuCreateDebug.Name = "mnuCreateDebug";
			mnuCreateDebug.Size = new System.Drawing.Size(218, 24);
			mnuCreateDebug.Text = "Create Debug File";
			mnuViewLog.Name = "mnuViewLog";
			mnuViewLog.Size = new System.Drawing.Size(218, 24);
			mnuViewLog.Text = "View Log";
			CheckForBETAVersionToolStripMenuItem.Name = "CheckForBETAVersionToolStripMenuItem";
			CheckForBETAVersionToolStripMenuItem.Size = new System.Drawing.Size(218, 24);
			CheckForBETAVersionToolStripMenuItem.Text = "Check for BETA version";
			OpenSettingsFolderToolStripMenuItem.Name = "OpenSettingsFolderToolStripMenuItem";
			OpenSettingsFolderToolStripMenuItem.Size = new System.Drawing.Size(218, 24);
			OpenSettingsFolderToolStripMenuItem.Text = "Open settings folder";
			TriggerErrorToolStripMenuItem.Name = "TriggerErrorToolStripMenuItem";
			TriggerErrorToolStripMenuItem.Size = new System.Drawing.Size(218, 24);
			TriggerErrorToolStripMenuItem.Text = "Trigger Error";
			TriggerErrorToolStripMenuItem.Visible = false;
			mnuUIFont.Name = "mnuUIFont";
			mnuUIFont.Size = new System.Drawing.Size(245, 24);
			mnuUIFont.Text = "Select User Interface Font";
			mnuUIFontSize.Name = "mnuUIFontSize";
			mnuUIFontSize.Size = new System.Drawing.Size(245, 24);
			mnuUIFontSize.Text = "Set User Interface Font Size";
			toolsbar.Name = "toolsbar";
			toolsbar.Size = new System.Drawing.Size(242, 6);
			CollaborationToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[6]
			{
				StartServerToolStripMenuItem,
				StopServerToolStripMenuItem,
				ToolStripSeparator40,
				ConnectToServerToolStripMenuItem,
				ToolStripSeparator39,
				RequestCopyOfProjectToolStripMenuItem
			});
			CollaborationToolStripMenuItem.Name = "CollaborationToolStripMenuItem";
			CollaborationToolStripMenuItem.Size = new System.Drawing.Size(245, 24);
			CollaborationToolStripMenuItem.Text = "Collaboration";
			StartServerToolStripMenuItem.Name = "StartServerToolStripMenuItem";
			StartServerToolStripMenuItem.Size = new System.Drawing.Size(222, 24);
			StartServerToolStripMenuItem.Text = "Start Server";
			StopServerToolStripMenuItem.Name = "StopServerToolStripMenuItem";
			StopServerToolStripMenuItem.Size = new System.Drawing.Size(222, 24);
			StopServerToolStripMenuItem.Text = "Stop Server";
			ToolStripSeparator40.Name = "ToolStripSeparator40";
			ToolStripSeparator40.Size = new System.Drawing.Size(219, 6);
			ConnectToServerToolStripMenuItem.Name = "ConnectToServerToolStripMenuItem";
			ConnectToServerToolStripMenuItem.Size = new System.Drawing.Size(222, 24);
			ConnectToServerToolStripMenuItem.Text = "Connect to Server";
			ToolStripSeparator39.Name = "ToolStripSeparator39";
			ToolStripSeparator39.Size = new System.Drawing.Size(219, 6);
			RequestCopyOfProjectToolStripMenuItem.Name = "RequestCopyOfProjectToolStripMenuItem";
			RequestCopyOfProjectToolStripMenuItem.Size = new System.Drawing.Size(222, 24);
			RequestCopyOfProjectToolStripMenuItem.Text = "Request copy of project";
			sepCollab.Name = "sepCollab";
			sepCollab.Size = new System.Drawing.Size(242, 6);
			mnuCheckVersion.Name = "mnuCheckVersion";
			mnuCheckVersion.Size = new System.Drawing.Size(245, 24);
			mnuCheckVersion.Text = "Check for new version";
			mnuLocalise.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[4]
			{
				mnuChooseLang,
				ToolStripSeparator17,
				CreateTemplatetxtFileToolStripMenuItem,
				RewriteAllLanguageFilesToolStripMenuItem
			});
			mnuLocalise.Name = "mnuLocalise";
			mnuLocalise.Size = new System.Drawing.Size(68, 23);
			mnuLocalise.Text = "Localise";
			mnuChooseLang.Name = "mnuChooseLang";
			mnuChooseLang.Size = new System.Drawing.Size(227, 24);
			mnuChooseLang.Text = "Choose Language";
			ToolStripSeparator17.Name = "ToolStripSeparator17";
			ToolStripSeparator17.Size = new System.Drawing.Size(224, 6);
			CreateTemplatetxtFileToolStripMenuItem.Name = "CreateTemplatetxtFileToolStripMenuItem";
			CreateTemplatetxtFileToolStripMenuItem.Size = new System.Drawing.Size(227, 24);
			CreateTemplatetxtFileToolStripMenuItem.Text = "Create Template.txt file";
			CreateTemplatetxtFileToolStripMenuItem.ToolTipText = "You must have write permission in the Programs folder";
			RewriteAllLanguageFilesToolStripMenuItem.Name = "RewriteAllLanguageFilesToolStripMenuItem";
			RewriteAllLanguageFilesToolStripMenuItem.Size = new System.Drawing.Size(227, 24);
			RewriteAllLanguageFilesToolStripMenuItem.Text = "Rewrite all language files";
			RewriteAllLanguageFilesToolStripMenuItem.ToolTipText = "You must have write permission in the Programs folder";
			mnuHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[9]
			{
				mnuAbout,
				RegisterToolStripMenuItem,
				ToolStripSeparator35,
				KeyboardShortcutsToolStripMenuItem,
				QuickstartGuidePDFToolStripMenuItem,
				mnuManual,
				ManualGermanHTMLToolStripMenuItem,
				pbarhelp,
				ExternalLinksToolStripMenuItem
			});
			mnuHelp.Name = "mnuHelp";
			mnuHelp.Size = new System.Drawing.Size(49, 23);
			mnuHelp.Text = "Help";
			mnuAbout.Name = "mnuAbout";
			mnuAbout.Size = new System.Drawing.Size(229, 24);
			mnuAbout.Text = "About yWriter";
			RegisterToolStripMenuItem.Name = "RegisterToolStripMenuItem";
			RegisterToolStripMenuItem.Size = new System.Drawing.Size(229, 24);
			RegisterToolStripMenuItem.Text = "Register yWriter6";
			ToolStripSeparator35.Name = "ToolStripSeparator35";
			ToolStripSeparator35.Size = new System.Drawing.Size(226, 6);
			KeyboardShortcutsToolStripMenuItem.Name = "KeyboardShortcutsToolStripMenuItem";
			KeyboardShortcutsToolStripMenuItem.Size = new System.Drawing.Size(229, 24);
			KeyboardShortcutsToolStripMenuItem.Text = "Keyboard Shortcuts";
			QuickstartGuidePDFToolStripMenuItem.Name = "QuickstartGuidePDFToolStripMenuItem";
			QuickstartGuidePDFToolStripMenuItem.Size = new System.Drawing.Size(229, 24);
			QuickstartGuidePDFToolStripMenuItem.Text = "Quickstart Guide";
			mnuManual.Name = "mnuManual";
			mnuManual.Size = new System.Drawing.Size(229, 24);
			mnuManual.Text = "Manual (HTML)";
			ManualGermanHTMLToolStripMenuItem.Name = "ManualGermanHTMLToolStripMenuItem";
			ManualGermanHTMLToolStripMenuItem.Size = new System.Drawing.Size(229, 24);
			ManualGermanHTMLToolStripMenuItem.Text = "Manual (German, HTML)";
			pbarhelp.Name = "pbarhelp";
			pbarhelp.Size = new System.Drawing.Size(226, 6);
			ExternalLinksToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[8]
			{
				mnuYWWebPage,
				LikeYWriterOnFacebookToolStripMenuItem,
				SimonHaynesOnTwitterToolStripMenuItem,
				YWriterWikiToolStripMenuItem,
				mnuGoogleGroup,
				ToolStripSepLinks,
				mnuWritingArticles,
				RecommendedBooksOnWritingToolStripMenuItem
			});
			ExternalLinksToolStripMenuItem.Name = "ExternalLinksToolStripMenuItem";
			ExternalLinksToolStripMenuItem.Size = new System.Drawing.Size(229, 24);
			ExternalLinksToolStripMenuItem.Text = "External Links";
			mnuYWWebPage.Image = (System.Drawing.Image)resources.GetObject("mnuYWWebPage.Image");
			mnuYWWebPage.Name = "mnuYWWebPage";
			mnuYWWebPage.Size = new System.Drawing.Size(280, 26);
			mnuYWWebPage.Text = "yWriter web page";
			LikeYWriterOnFacebookToolStripMenuItem.Image = (System.Drawing.Image)resources.GetObject("LikeYWriterOnFacebookToolStripMenuItem.Image");
			LikeYWriterOnFacebookToolStripMenuItem.Name = "LikeYWriterOnFacebookToolStripMenuItem";
			LikeYWriterOnFacebookToolStripMenuItem.Size = new System.Drawing.Size(280, 26);
			LikeYWriterOnFacebookToolStripMenuItem.Text = "yWriter Facebook page";
			SimonHaynesOnTwitterToolStripMenuItem.Image = (System.Drawing.Image)resources.GetObject("SimonHaynesOnTwitterToolStripMenuItem.Image");
			SimonHaynesOnTwitterToolStripMenuItem.Name = "SimonHaynesOnTwitterToolStripMenuItem";
			SimonHaynesOnTwitterToolStripMenuItem.Size = new System.Drawing.Size(280, 26);
			SimonHaynesOnTwitterToolStripMenuItem.Text = "Simon Haynes on twitter";
			YWriterWikiToolStripMenuItem.Name = "YWriterWikiToolStripMenuItem";
			YWriterWikiToolStripMenuItem.Size = new System.Drawing.Size(280, 26);
			YWriterWikiToolStripMenuItem.Text = "yWriter Wiki";
			YWriterWikiToolStripMenuItem.ToolTipText = "User-generated help and tips for yWriter";
			mnuGoogleGroup.Name = "mnuGoogleGroup";
			mnuGoogleGroup.Size = new System.Drawing.Size(280, 26);
			mnuGoogleGroup.Text = "yWriter discussion group";
			ToolStripSepLinks.Name = "ToolStripSepLinks";
			ToolStripSepLinks.Size = new System.Drawing.Size(277, 6);
			mnuWritingArticles.Name = "mnuWritingArticles";
			mnuWritingArticles.Size = new System.Drawing.Size(280, 26);
			mnuWritingArticles.Text = "My articles on writing";
			mnuWritingArticles.ToolTipText = "Articles by Simon Haynes on how to write a novel, how to get published, etc.";
			RecommendedBooksOnWritingToolStripMenuItem.Name = "RecommendedBooksOnWritingToolStripMenuItem";
			RecommendedBooksOnWritingToolStripMenuItem.Size = new System.Drawing.Size(280, 26);
			RecommendedBooksOnWritingToolStripMenuItem.Text = "Recommended books on writing";
			RecommendedBooksOnWritingToolStripMenuItem.ToolTipText = "A link to the article on spacejock.com.au";
			YWriterAndroidComingSoonToolStripMenuItem.Font = new System.Drawing.Font("Segoe UI Semibold", 9.75f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			YWriterAndroidComingSoonToolStripMenuItem.Name = "YWriterAndroidComingSoonToolStripMenuItem";
			YWriterAndroidComingSoonToolStripMenuItem.Size = new System.Drawing.Size(204, 23);
			YWriterAndroidComingSoonToolStripMenuItem.Text = "Android/iOS/Kindle out now ...";
			cmdDiscardProjectNote.AutoSize = true;
			cmdDiscardProjectNote.BackColor = System.Drawing.SystemColors.Control;
			cmdDiscardProjectNote.Cursor = System.Windows.Forms.Cursors.Default;
			cmdDiscardProjectNote.Enabled = false;
			cmdDiscardProjectNote.FlatStyle = System.Windows.Forms.FlatStyle.System;
			cmdDiscardProjectNote.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			cmdDiscardProjectNote.ForeColor = System.Drawing.SystemColors.ControlText;
			cmdDiscardProjectNote.Location = new System.Drawing.Point(106, 2);
			cmdDiscardProjectNote.Margin = new System.Windows.Forms.Padding(2);
			cmdDiscardProjectNote.Name = "cmdDiscardProjectNote";
			cmdDiscardProjectNote.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmdDiscardProjectNote.Size = new System.Drawing.Size(63, 28);
			cmdDiscardProjectNote.TabIndex = 49;
			cmdDiscardProjectNote.Text = "Cancel";
			cmdDiscardProjectNote.UseVisualStyleBackColor = true;
			cmdEditProjectNote.AutoSize = true;
			cmdEditProjectNote.BackColor = System.Drawing.SystemColors.Control;
			cmdEditProjectNote.Cursor = System.Windows.Forms.Cursors.Default;
			cmdEditProjectNote.Enabled = false;
			cmdEditProjectNote.FlatStyle = System.Windows.Forms.FlatStyle.System;
			cmdEditProjectNote.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			cmdEditProjectNote.ForeColor = System.Drawing.SystemColors.ControlText;
			cmdEditProjectNote.Location = new System.Drawing.Point(56, 2);
			cmdEditProjectNote.Margin = new System.Windows.Forms.Padding(2);
			cmdEditProjectNote.Name = "cmdEditProjectNote";
			cmdEditProjectNote.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmdEditProjectNote.Size = new System.Drawing.Size(46, 28);
			cmdEditProjectNote.TabIndex = 48;
			cmdEditProjectNote.Text = "Edit";
			cmdEditProjectNote.UseVisualStyleBackColor = true;
			cmdSaveProjectNote.Anchor = System.Windows.Forms.AnchorStyles.Right;
			cmdSaveProjectNote.AutoSize = true;
			cmdSaveProjectNote.BackColor = System.Drawing.SystemColors.Control;
			cmdSaveProjectNote.Cursor = System.Windows.Forms.Cursors.Default;
			cmdSaveProjectNote.Enabled = false;
			cmdSaveProjectNote.FlatStyle = System.Windows.Forms.FlatStyle.System;
			cmdSaveProjectNote.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			cmdSaveProjectNote.ForeColor = System.Drawing.SystemColors.ControlText;
			cmdSaveProjectNote.Location = new System.Drawing.Point(620, 2);
			cmdSaveProjectNote.Margin = new System.Windows.Forms.Padding(2);
			cmdSaveProjectNote.Name = "cmdSaveProjectNote";
			cmdSaveProjectNote.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmdSaveProjectNote.Size = new System.Drawing.Size(51, 28);
			cmdSaveProjectNote.TabIndex = 47;
			cmdSaveProjectNote.Text = "Save";
			cmdSaveProjectNote.UseVisualStyleBackColor = true;
			cmdNewProjectNote.AutoSize = true;
			cmdNewProjectNote.BackColor = System.Drawing.SystemColors.Control;
			cmdNewProjectNote.Cursor = System.Windows.Forms.Cursors.Default;
			cmdNewProjectNote.FlatStyle = System.Windows.Forms.FlatStyle.System;
			cmdNewProjectNote.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			cmdNewProjectNote.ForeColor = System.Drawing.SystemColors.ControlText;
			cmdNewProjectNote.Location = new System.Drawing.Point(2, 2);
			cmdNewProjectNote.Margin = new System.Windows.Forms.Padding(2);
			cmdNewProjectNote.Name = "cmdNewProjectNote";
			cmdNewProjectNote.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmdNewProjectNote.Size = new System.Drawing.Size(50, 28);
			cmdNewProjectNote.TabIndex = 46;
			cmdNewProjectNote.Text = "New";
			cmdNewProjectNote.UseVisualStyleBackColor = true;
			txtNoteTitle.AcceptsReturn = true;
			txtNoteTitle.Anchor = (System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right);
			txtNoteTitle.BackColor = System.Drawing.SystemColors.Window;
			txtNoteTitle.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtNoteTitle.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtNoteTitle.ForeColor = System.Drawing.SystemColors.WindowText;
			txtNoteTitle.Location = new System.Drawing.Point(173, 3);
			txtNoteTitle.Margin = new System.Windows.Forms.Padding(2);
			txtNoteTitle.MaxLength = 0;
			txtNoteTitle.Name = "txtNoteTitle";
			txtNoteTitle.ReadOnly = true;
			txtNoteTitle.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtNoteTitle.Size = new System.Drawing.Size(443, 25);
			txtNoteTitle.TabIndex = 45;
			txtSceneTitle.AcceptsReturn = true;
			txtSceneTitle.BackColor = System.Drawing.SystemColors.Window;
			txtSceneTitle.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtSceneTitle.Dock = System.Windows.Forms.DockStyle.Fill;
			txtSceneTitle.Font = new System.Drawing.Font("Segoe UI", 10f);
			txtSceneTitle.ForeColor = System.Drawing.SystemColors.WindowText;
			txtSceneTitle.Location = new System.Drawing.Point(2, 2);
			txtSceneTitle.Margin = new System.Windows.Forms.Padding(2);
			txtSceneTitle.MaxLength = 0;
			txtSceneTitle.Name = "txtSceneTitle";
			txtSceneTitle.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtSceneTitle.Size = new System.Drawing.Size(673, 25);
			txtSceneTitle.TabIndex = 17;
			txtSceneTitle.Text = "Scene Title";
			TimerUpdate.Interval = 5000;
			TabControlMain.Controls.Add(TabChapterScenes);
			TabControlMain.Controls.Add(tabProjectNotes);
			TabControlMain.Controls.Add(TabProjectChar);
			TabControlMain.Controls.Add(TabProjectLoc);
			TabControlMain.Controls.Add(TabProjectItem);
			TabControlMain.Font = new System.Drawing.Font("Segoe UI", 10f);
			TabControlMain.ItemSize = new System.Drawing.Size(62, 22);
			TabControlMain.Location = new System.Drawing.Point(261, 37);
			TabControlMain.Margin = new System.Windows.Forms.Padding(2);
			TabControlMain.Multiline = true;
			TabControlMain.Name = "TabControlMain";
			TabControlMain.SelectedIndex = 0;
			TabControlMain.Size = new System.Drawing.Size(685, 567);
			TabControlMain.TabIndex = 45;
			TabChapterScenes.BackColor = System.Drawing.Color.Transparent;
			TabChapterScenes.Controls.Add(ListScenes);
			TabChapterScenes.Controls.Add(Panel2);
			TabChapterScenes.Controls.Add(Splitter2);
			TabChapterScenes.Controls.Add(TabControlScene);
			TabChapterScenes.Location = new System.Drawing.Point(4, 26);
			TabChapterScenes.Margin = new System.Windows.Forms.Padding(2);
			TabChapterScenes.Name = "TabChapterScenes";
			TabChapterScenes.Size = new System.Drawing.Size(677, 537);
			TabChapterScenes.TabIndex = 0;
			TabChapterScenes.Text = "Scenes";
			TabChapterScenes.UseVisualStyleBackColor = true;
			Panel2.AutoSize = true;
			Panel2.Controls.Add(txtSceneTitle);
			Panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
			Panel2.Location = new System.Drawing.Point(0, 362);
			Panel2.Margin = new System.Windows.Forms.Padding(2);
			Panel2.MinimumSize = new System.Drawing.Size(0, 24);
			Panel2.Name = "Panel2";
			Panel2.Padding = new System.Windows.Forms.Padding(2);
			Panel2.Size = new System.Drawing.Size(677, 24);
			Panel2.TabIndex = 46;
			Splitter2.Dock = System.Windows.Forms.DockStyle.Bottom;
			Splitter2.Location = new System.Drawing.Point(0, 386);
			Splitter2.Margin = new System.Windows.Forms.Padding(2);
			Splitter2.Name = "Splitter2";
			Splitter2.Size = new System.Drawing.Size(677, 2);
			Splitter2.TabIndex = 45;
			Splitter2.TabStop = false;
			tabProjectNotes.Controls.Add(ListNotes);
			tabProjectNotes.Controls.Add(TableLayoutNoteBar);
			tabProjectNotes.Controls.Add(Splitter3);
			tabProjectNotes.Controls.Add(txtNoteEditor);
			tabProjectNotes.Location = new System.Drawing.Point(4, 26);
			tabProjectNotes.Margin = new System.Windows.Forms.Padding(2);
			tabProjectNotes.Name = "tabProjectNotes";
			tabProjectNotes.Padding = new System.Windows.Forms.Padding(2);
			tabProjectNotes.Size = new System.Drawing.Size(677, 537);
			tabProjectNotes.TabIndex = 1;
			tabProjectNotes.Text = "Project Notes";
			tabProjectNotes.UseVisualStyleBackColor = true;
			TableLayoutNoteBar.AutoSize = true;
			TableLayoutNoteBar.ColumnCount = 5;
			TableLayoutNoteBar.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
			TableLayoutNoteBar.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
			TableLayoutNoteBar.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
			TableLayoutNoteBar.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100f));
			TableLayoutNoteBar.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
			TableLayoutNoteBar.Controls.Add(cmdSaveProjectNote, 4, 0);
			TableLayoutNoteBar.Controls.Add(cmdDiscardProjectNote, 2, 0);
			TableLayoutNoteBar.Controls.Add(txtNoteTitle, 3, 0);
			TableLayoutNoteBar.Controls.Add(cmdNewProjectNote, 0, 0);
			TableLayoutNoteBar.Controls.Add(cmdEditProjectNote, 1, 0);
			TableLayoutNoteBar.Dock = System.Windows.Forms.DockStyle.Bottom;
			TableLayoutNoteBar.Location = new System.Drawing.Point(2, 451);
			TableLayoutNoteBar.Name = "TableLayoutNoteBar";
			TableLayoutNoteBar.RowCount = 1;
			TableLayoutNoteBar.RowStyles.Add(new System.Windows.Forms.RowStyle());
			TableLayoutNoteBar.Size = new System.Drawing.Size(673, 32);
			TableLayoutNoteBar.TabIndex = 50;
			Splitter3.Dock = System.Windows.Forms.DockStyle.Bottom;
			Splitter3.Location = new System.Drawing.Point(2, 483);
			Splitter3.Margin = new System.Windows.Forms.Padding(2);
			Splitter3.Name = "Splitter3";
			Splitter3.Size = new System.Drawing.Size(673, 2);
			Splitter3.TabIndex = 45;
			Splitter3.TabStop = false;
			TabProjectChar.Controls.Add(ListProjectCharacters);
			TabProjectChar.Controls.Add(Splitter4);
			TabProjectChar.Controls.Add(txtCharDesc);
			TabProjectChar.Location = new System.Drawing.Point(4, 26);
			TabProjectChar.Margin = new System.Windows.Forms.Padding(2);
			TabProjectChar.Name = "TabProjectChar";
			TabProjectChar.Padding = new System.Windows.Forms.Padding(2);
			TabProjectChar.Size = new System.Drawing.Size(677, 537);
			TabProjectChar.TabIndex = 2;
			TabProjectChar.Text = "Characters";
			TabProjectChar.UseVisualStyleBackColor = true;
			ListProjectCharacters.AllowDrop = true;
			ListProjectCharacters.BackColor = System.Drawing.SystemColors.Window;
			ListProjectCharacters.Columns.AddRange(new System.Windows.Forms.ColumnHeader[7]
			{
				_ListItems_ColumnHeader_1,
				_ListItems_ColumnHeader_2,
				ColumnHeader1,
				ColumnHeader2,
				ColumnHeader3,
				ColumnHeader4,
				ColumnHeader11
			});
			ListProjectCharacters.ContextMenuStrip = ctxListProjectChar;
			ListProjectCharacters.Dock = System.Windows.Forms.DockStyle.Fill;
			ListProjectCharacters.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListProjectCharacters.ForeColor = System.Drawing.SystemColors.WindowText;
			ListProjectCharacters.FullRowSelect = true;
			ListProjectCharacters.GridLines = true;
			ListProjectCharacters.HideSelection = false;
			ListProjectCharacters.Location = new System.Drawing.Point(2, 2);
			ListProjectCharacters.Margin = new System.Windows.Forms.Padding(2);
			ListProjectCharacters.Name = "ListProjectCharacters";
			ListProjectCharacters.Size = new System.Drawing.Size(673, 433);
			ListProjectCharacters.TabIndex = 13;
			ListProjectCharacters.UseCompatibleStateImageBehavior = false;
			ListProjectCharacters.View = System.Windows.Forms.View.Details;
			_ListItems_ColumnHeader_1.Text = "Short name";
			_ListItems_ColumnHeader_1.Width = 96;
			_ListItems_ColumnHeader_2.Text = "Name";
			_ListItems_ColumnHeader_2.Width = 155;
			ColumnHeader1.Text = "Alternate";
			ColumnHeader1.Width = 156;
			ColumnHeader2.Text = "VP Scenes";
			ColumnHeader2.Width = 90;
			ColumnHeader3.Text = "Scenes";
			ColumnHeader3.Width = 77;
			ColumnHeader4.Text = "Words";
			ColumnHeader4.Width = 70;
			ColumnHeader11.Text = "VP (Unused)";
			ctxListProjectChar.ImageScalingSize = new System.Drawing.Size(20, 20);
			ctxListProjectChar.Items.AddRange(new System.Windows.Forms.ToolStripItem[1]
			{
				AddNewCharToProject
			});
			ctxListProjectChar.Name = "ctxListProjectChar";
			ctxListProjectChar.Size = new System.Drawing.Size(142, 30);
			AddNewCharToProject.Name = "AddNewCharToProject";
			AddNewCharToProject.Size = new System.Drawing.Size(141, 26);
			AddNewCharToProject.Text = "Add new";
			Splitter4.Dock = System.Windows.Forms.DockStyle.Bottom;
			Splitter4.Location = new System.Drawing.Point(2, 435);
			Splitter4.Margin = new System.Windows.Forms.Padding(2);
			Splitter4.Name = "Splitter4";
			Splitter4.Size = new System.Drawing.Size(673, 5);
			Splitter4.TabIndex = 18;
			Splitter4.TabStop = false;
			txtCharDesc.AcceptsReturn = true;
			txtCharDesc.BackColor = System.Drawing.SystemColors.Control;
			txtCharDesc.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtCharDesc.Dock = System.Windows.Forms.DockStyle.Bottom;
			txtCharDesc.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtCharDesc.ForeColor = System.Drawing.SystemColors.WindowText;
			txtCharDesc.Location = new System.Drawing.Point(2, 440);
			txtCharDesc.Margin = new System.Windows.Forms.Padding(2);
			txtCharDesc.MaxLength = 0;
			txtCharDesc.Multiline = true;
			txtCharDesc.Name = "txtCharDesc";
			txtCharDesc.ReadOnly = true;
			txtCharDesc.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtCharDesc.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
			txtCharDesc.Size = new System.Drawing.Size(673, 95);
			txtCharDesc.TabIndex = 17;
			TabProjectLoc.Controls.Add(ListProjectLocations);
			TabProjectLoc.Controls.Add(Splitter5);
			TabProjectLoc.Controls.Add(txtLocDesc);
			TabProjectLoc.Location = new System.Drawing.Point(4, 26);
			TabProjectLoc.Margin = new System.Windows.Forms.Padding(2);
			TabProjectLoc.Name = "TabProjectLoc";
			TabProjectLoc.Padding = new System.Windows.Forms.Padding(2);
			TabProjectLoc.Size = new System.Drawing.Size(677, 537);
			TabProjectLoc.TabIndex = 3;
			TabProjectLoc.Text = "Locations";
			TabProjectLoc.UseVisualStyleBackColor = true;
			ListProjectLocations.AllowDrop = true;
			ListProjectLocations.BackColor = System.Drawing.SystemColors.Window;
			ListProjectLocations.Columns.AddRange(new System.Windows.Forms.ColumnHeader[3]
			{
				ColumnHeader5,
				ColumnHeader9,
				ColumnHeader6
			});
			ListProjectLocations.ContextMenuStrip = ctxListProjectLoc;
			ListProjectLocations.Dock = System.Windows.Forms.DockStyle.Fill;
			ListProjectLocations.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListProjectLocations.ForeColor = System.Drawing.SystemColors.WindowText;
			ListProjectLocations.FullRowSelect = true;
			ListProjectLocations.GridLines = true;
			ListProjectLocations.HideSelection = false;
			ListProjectLocations.Location = new System.Drawing.Point(2, 2);
			ListProjectLocations.Margin = new System.Windows.Forms.Padding(2);
			ListProjectLocations.Name = "ListProjectLocations";
			ListProjectLocations.Size = new System.Drawing.Size(673, 433);
			ListProjectLocations.TabIndex = 19;
			ListProjectLocations.UseCompatibleStateImageBehavior = false;
			ListProjectLocations.View = System.Windows.Forms.View.Details;
			ColumnHeader5.Text = "Title";
			ColumnHeader5.Width = 103;
			ColumnHeader9.DisplayIndex = 2;
			ColumnHeader9.Text = "Description";
			ColumnHeader9.Width = 384;
			ColumnHeader6.DisplayIndex = 1;
			ColumnHeader6.Text = "Scenes";
			ColumnHeader6.Width = 83;
			ctxListProjectLoc.ImageScalingSize = new System.Drawing.Size(20, 20);
			ctxListProjectLoc.Items.AddRange(new System.Windows.Forms.ToolStripItem[1]
			{
				AddNewLocationToProject
			});
			ctxListProjectLoc.Name = "ctxListProjectLoc";
			ctxListProjectLoc.Size = new System.Drawing.Size(142, 30);
			AddNewLocationToProject.Name = "AddNewLocationToProject";
			AddNewLocationToProject.Size = new System.Drawing.Size(141, 26);
			AddNewLocationToProject.Text = "Add new";
			Splitter5.Dock = System.Windows.Forms.DockStyle.Bottom;
			Splitter5.Location = new System.Drawing.Point(2, 435);
			Splitter5.Margin = new System.Windows.Forms.Padding(2);
			Splitter5.Name = "Splitter5";
			Splitter5.Size = new System.Drawing.Size(673, 5);
			Splitter5.TabIndex = 21;
			Splitter5.TabStop = false;
			txtLocDesc.AcceptsReturn = true;
			txtLocDesc.BackColor = System.Drawing.SystemColors.Control;
			txtLocDesc.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtLocDesc.Dock = System.Windows.Forms.DockStyle.Bottom;
			txtLocDesc.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtLocDesc.ForeColor = System.Drawing.SystemColors.WindowText;
			txtLocDesc.Location = new System.Drawing.Point(2, 440);
			txtLocDesc.Margin = new System.Windows.Forms.Padding(2);
			txtLocDesc.MaxLength = 0;
			txtLocDesc.Multiline = true;
			txtLocDesc.Name = "txtLocDesc";
			txtLocDesc.ReadOnly = true;
			txtLocDesc.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtLocDesc.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
			txtLocDesc.Size = new System.Drawing.Size(673, 95);
			txtLocDesc.TabIndex = 20;
			TabProjectItem.Controls.Add(ListProjectItems);
			TabProjectItem.Controls.Add(Splitter6);
			TabProjectItem.Controls.Add(txtItemDesc);
			TabProjectItem.Location = new System.Drawing.Point(4, 26);
			TabProjectItem.Margin = new System.Windows.Forms.Padding(2);
			TabProjectItem.Name = "TabProjectItem";
			TabProjectItem.Padding = new System.Windows.Forms.Padding(2);
			TabProjectItem.Size = new System.Drawing.Size(677, 537);
			TabProjectItem.TabIndex = 4;
			TabProjectItem.Text = "Items";
			TabProjectItem.UseVisualStyleBackColor = true;
			ListProjectItems.AllowDrop = true;
			ListProjectItems.BackColor = System.Drawing.SystemColors.Window;
			ListProjectItems.Columns.AddRange(new System.Windows.Forms.ColumnHeader[3]
			{
				ColumnHeader7,
				ColumnHeader8,
				ColumnHeader10
			});
			ListProjectItems.ContextMenuStrip = ctxListProjectItem;
			ListProjectItems.Dock = System.Windows.Forms.DockStyle.Fill;
			ListProjectItems.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			ListProjectItems.ForeColor = System.Drawing.SystemColors.WindowText;
			ListProjectItems.FullRowSelect = true;
			ListProjectItems.GridLines = true;
			ListProjectItems.HideSelection = false;
			ListProjectItems.Location = new System.Drawing.Point(2, 2);
			ListProjectItems.Margin = new System.Windows.Forms.Padding(2);
			ListProjectItems.Name = "ListProjectItems";
			ListProjectItems.Size = new System.Drawing.Size(673, 433);
			ListProjectItems.TabIndex = 22;
			ListProjectItems.UseCompatibleStateImageBehavior = false;
			ListProjectItems.View = System.Windows.Forms.View.Details;
			ColumnHeader7.Text = "Title";
			ColumnHeader7.Width = 103;
			ColumnHeader8.DisplayIndex = 2;
			ColumnHeader8.Text = "Description";
			ColumnHeader8.Width = 336;
			ColumnHeader10.DisplayIndex = 1;
			ColumnHeader10.Text = "Scenes";
			ColumnHeader10.Width = 65;
			ctxListProjectItem.ImageScalingSize = new System.Drawing.Size(20, 20);
			ctxListProjectItem.Items.AddRange(new System.Windows.Forms.ToolStripItem[1]
			{
				AddNewItemToProject
			});
			ctxListProjectItem.Name = "ctxListProjectItem";
			ctxListProjectItem.Size = new System.Drawing.Size(142, 30);
			AddNewItemToProject.Name = "AddNewItemToProject";
			AddNewItemToProject.Size = new System.Drawing.Size(141, 26);
			AddNewItemToProject.Text = "Add new";
			Splitter6.Dock = System.Windows.Forms.DockStyle.Bottom;
			Splitter6.Location = new System.Drawing.Point(2, 435);
			Splitter6.Margin = new System.Windows.Forms.Padding(2);
			Splitter6.Name = "Splitter6";
			Splitter6.Size = new System.Drawing.Size(673, 5);
			Splitter6.TabIndex = 21;
			Splitter6.TabStop = false;
			txtItemDesc.AcceptsReturn = true;
			txtItemDesc.BackColor = System.Drawing.SystemColors.Control;
			txtItemDesc.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtItemDesc.Dock = System.Windows.Forms.DockStyle.Bottom;
			txtItemDesc.Font = new System.Drawing.Font("Segoe UI", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			txtItemDesc.ForeColor = System.Drawing.SystemColors.WindowText;
			txtItemDesc.Location = new System.Drawing.Point(2, 440);
			txtItemDesc.Margin = new System.Windows.Forms.Padding(2);
			txtItemDesc.MaxLength = 0;
			txtItemDesc.Multiline = true;
			txtItemDesc.Name = "txtItemDesc";
			txtItemDesc.ReadOnly = true;
			txtItemDesc.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtItemDesc.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
			txtItemDesc.Size = new System.Drawing.Size(673, 95);
			txtItemDesc.TabIndex = 20;
			Panel1.AutoSize = true;
			Panel1.Dock = System.Windows.Forms.DockStyle.Top;
			Panel1.Location = new System.Drawing.Point(0, 27);
			Panel1.Margin = new System.Windows.Forms.Padding(2);
			Panel1.Name = "Panel1";
			Panel1.Size = new System.Drawing.Size(1011, 0);
			Panel1.TabIndex = 41;
			SplitContainer1.Dock = System.Windows.Forms.DockStyle.Left;
			SplitContainer1.Location = new System.Drawing.Point(0, 27);
			SplitContainer1.Margin = new System.Windows.Forms.Padding(2);
			SplitContainer1.Name = "SplitContainer1";
			SplitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
			SplitContainer1.Panel1.Controls.Add(ListChapters);
			SplitContainer1.Panel1.Padding = new System.Windows.Forms.Padding(2);
			SplitContainer1.Panel2.Controls.Add(txtChapterDesc);
			SplitContainer1.Panel2.Controls.Add(cmbBooks);
			SplitContainer1.Panel2.Padding = new System.Windows.Forms.Padding(2);
			SplitContainer1.Size = new System.Drawing.Size(235, 577);
			SplitContainer1.SplitterDistance = 397;
			SplitContainer1.SplitterWidth = 3;
			SplitContainer1.TabIndex = 47;
			cmbBooks.Dock = System.Windows.Forms.DockStyle.Bottom;
			cmbBooks.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			cmbBooks.FormattingEnabled = true;
			cmbBooks.Location = new System.Drawing.Point(2, 150);
			cmbBooks.Margin = new System.Windows.Forms.Padding(2);
			cmbBooks.Name = "cmbBooks";
			cmbBooks.Size = new System.Drawing.Size(231, 25);
			cmbBooks.TabIndex = 40;
			cmbBooks.Visible = false;
			Splitter1.Location = new System.Drawing.Point(235, 27);
			Splitter1.Margin = new System.Windows.Forms.Padding(2);
			Splitter1.Name = "Splitter1";
			Splitter1.Size = new System.Drawing.Size(2, 577);
			Splitter1.TabIndex = 48;
			Splitter1.TabStop = false;
			StatusStrip1.BackColor = System.Drawing.Color.Transparent;
			StatusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
			StatusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[7]
			{
				tssVersion,
				tssBackupButton,
				tssWordcount,
				tssPrintProgress,
				tssStatus,
				tssProgress,
				tsbCollab
			});
			StatusStrip1.Location = new System.Drawing.Point(0, 604);
			StatusStrip1.Name = "StatusStrip1";
			StatusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 11, 0);
			StatusStrip1.Size = new System.Drawing.Size(1011, 32);
			StatusStrip1.TabIndex = 49;
			StatusStrip1.Text = "StatusStrip1";
			tssVersion.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Left;
			tssVersion.Name = "tssVersion";
			tssVersion.Size = new System.Drawing.Size(26, 27);
			tssVersion.Text = "   ";
			tssVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			tssBackupButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			tssBackupButton.Font = new System.Drawing.Font("Tahoma", 7.8f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			tssBackupButton.Image = (System.Drawing.Image)resources.GetObject("tssBackupButton.Image");
			tssBackupButton.ImageTransparentColor = System.Drawing.Color.Magenta;
			tssBackupButton.Name = "tssBackupButton";
			tssBackupButton.Size = new System.Drawing.Size(140, 30);
			tssBackupButton.Text = "Click to back up now!";
			tssBackupButton.ToolTipText = "This button appears when you haven't done a full backup for several days";
			tssBackupButton.Visible = false;
			tssWordcount.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Left;
			tssWordcount.Name = "tssWordcount";
			tssWordcount.Size = new System.Drawing.Size(26, 27);
			tssWordcount.Text = "   ";
			tssWordcount.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			tssPrintProgress.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Left;
			tssPrintProgress.Font = new System.Drawing.Font("Tahoma", 7.8f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
			tssPrintProgress.ForeColor = System.Drawing.SystemColors.ActiveCaption;
			tssPrintProgress.Name = "tssPrintProgress";
			tssPrintProgress.Size = new System.Drawing.Size(20, 27);
			tssPrintProgress.Text = "   ";
			tssPrintProgress.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			tssStatus.Name = "tssStatus";
			tssStatus.Size = new System.Drawing.Size(679, 27);
			tssStatus.Spring = true;
			tssStatus.Text = "   ";
			tssStatus.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			tssProgress.Name = "tssProgress";
			tssProgress.Size = new System.Drawing.Size(100, 26);
			tsbCollab.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			tsbCollab.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[2]
			{
				tsbApplyCollabChanges,
				tsbDeleteCollabChanges
			});
			tsbCollab.ForeColor = System.Drawing.Color.Red;
			tsbCollab.Image = (System.Drawing.Image)resources.GetObject("tsbCollab.Image");
			tsbCollab.ImageTransparentColor = System.Drawing.Color.Magenta;
			tsbCollab.Name = "tsbCollab";
			tsbCollab.Size = new System.Drawing.Size(146, 30);
			tsbCollab.Text = "Changes Pending";
			tsbCollab.ToolTipText = "Collaboration Changes";
			tsbApplyCollabChanges.Name = "tsbApplyCollabChanges";
			tsbApplyCollabChanges.Size = new System.Drawing.Size(124, 26);
			tsbApplyCollabChanges.Text = "Apply";
			tsbDeleteCollabChanges.Name = "tsbDeleteCollabChanges";
			tsbDeleteCollabChanges.Size = new System.Drawing.Size(124, 26);
			tsbDeleteCollabChanges.Text = "Delete";
			TimerFillCharlist.Interval = 2000;
			base.AutoScaleDimensions = new System.Drawing.SizeF(7f, 17f);
			base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			BackColor = System.Drawing.SystemColors.Control;
			base.ClientSize = new System.Drawing.Size(1011, 636);
			base.Controls.Add(TabControlMain);
			base.Controls.Add(Splitter1);
			base.Controls.Add(SplitContainer1);
			base.Controls.Add(Panel1);
			base.Controls.Add(StatusStrip1);
			base.Controls.Add(MainMenu1);
			Cursor = System.Windows.Forms.Cursors.Default;
			DoubleBuffered = true;
			Font = new System.Drawing.Font("Segoe UI", 10f);
			ForeColor = System.Drawing.Color.Black;
			base.Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
			base.KeyPreview = true;
			base.Location = new System.Drawing.Point(4, 40);
			base.MainMenuStrip = MainMenu1;
			base.Margin = new System.Windows.Forms.Padding(2);
			MinimumSize = new System.Drawing.Size(600, 453);
			base.Name = "frmMain";
			RightToLeft = System.Windows.Forms.RightToLeft.No;
			base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			Text = "yWriter 6 by Spacejock Software";
			ctxChapters.ResumeLayout(false);
			ctxScenes.ResumeLayout(false);
			ctxNotes.ResumeLayout(false);
			TabControlScene.ResumeLayout(false);
			tabSceneContent.ResumeLayout(false);
			tabSceneDescription.ResumeLayout(false);
			tabSceneCharacters.ResumeLayout(false);
			TableLayoutPanel4.ResumeLayout(false);
			ctxAllListsRC.ResumeLayout(false);
			ctxListsRC.ResumeLayout(false);
			tabSceneLocations.ResumeLayout(false);
			TableLayoutPanel2.ResumeLayout(false);
			tabSceneItems.ResumeLayout(false);
			TableLayoutPanel1.ResumeLayout(false);
			tabSceneNotes.ResumeLayout(false);
			tabSceneGoals.ResumeLayout(false);
			tabSceneGoals.PerformLayout();
			TableLayoutGoals.ResumeLayout(false);
			TableLayoutGoals.PerformLayout();
			MainMenu1.ResumeLayout(false);
			MainMenu1.PerformLayout();
			TabControlMain.ResumeLayout(false);
			TabChapterScenes.ResumeLayout(false);
			TabChapterScenes.PerformLayout();
			Panel2.ResumeLayout(false);
			Panel2.PerformLayout();
			tabProjectNotes.ResumeLayout(false);
			tabProjectNotes.PerformLayout();
			TableLayoutNoteBar.ResumeLayout(false);
			TableLayoutNoteBar.PerformLayout();
			TabProjectChar.ResumeLayout(false);
			TabProjectChar.PerformLayout();
			ctxListProjectChar.ResumeLayout(false);
			TabProjectLoc.ResumeLayout(false);
			TabProjectLoc.PerformLayout();
			ctxListProjectLoc.ResumeLayout(false);
			TabProjectItem.ResumeLayout(false);
			TabProjectItem.PerformLayout();
			ctxListProjectItem.ResumeLayout(false);
			SplitContainer1.Panel1.ResumeLayout(false);
			SplitContainer1.Panel2.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)SplitContainer1).EndInit();
			SplitContainer1.ResumeLayout(false);
			StatusStrip1.ResumeLayout(false);
			StatusStrip1.PerformLayout();
			ResumeLayout(false);
			PerformLayout();
		}

		private void cmdDiscard_Click(object eventSender, EventArgs eventArgs)
		{
			DisplaySelectedNote();
		}

		private void cmdEdit_Click(object eventSender, EventArgs eventArgs)
		{
			SetupNoteForEdit();
		}

		public void cmdFindNext_Click(object eventSender, EventArgs eventArgs)
		{
			FindNext();
		}

		private void cmdNew_Click(object eventSender, EventArgs eventArgs)
		{
			SetupNoteForNew();
		}

		private void cmdSave_Click(object eventSender, EventArgs eventArgs)
		{
			//Discarded unreachable code: IL_0234, IL_024b, IL_0256, IL_0266, IL_02f0, IL_02f2, IL_0306, IL_0328
			int num = default(int);
			int num4 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (Conversions.ToBoolean(Strings.Trim(Conversions.ToString(Operators.CompareString(txtNoteTitle.Text, "", TextCompare: false) == 0))))
				{
					num2 = 3;
					clsShared.cLang.TransMsgBox(Resources.strGiveNoteATitle);
				}
				else
				{
					num2 = 5;
					cmdSaveProjectNote.Enabled = false;
					num2 = 6;
					clsNote cNote;
					if (Conversion.Val(RuntimeHelpers.GetObjectValue(txtNoteEditor.Tag)) <= 0.0)
					{
						num2 = 7;
						cNote = new clsNote();
						num2 = 8;
						cNote.DescText = txtNoteEditor.Text;
						num2 = 9;
						cNote.Title = txtNoteTitle.Text;
						num2 = 10;
						cProject.AddNote(ref cNote);
						num2 = 11;
						ListViewItem listViewItem = ListNotes.Items.Add(cNote.Title);
						num2 = 12;
						listViewItem.Tag = Conversions.ToString(cNote.ID);
						num2 = 13;
						listViewItem.Name = Conversions.ToString(cNote.ID);
						num2 = 14;
						txtNoteEditor.Tag = cNote.ID;
					}
					else
					{
						num2 = 16;
						cNote = cProject.get_NoteByID(Conversions.ToInteger(txtNoteEditor.Tag));
						num2 = 17;
						cNote.DescText = txtNoteEditor.Text;
						num2 = 18;
						cNote.Title = txtNoteTitle.Text;
						num2 = 19;
						ListNotes.Items[Conversions.ToString(cNote.ID)].Text = cNote.Title;
					}
					num2 = 20;
					ListNotes.Enabled = true;
					num2 = 21;
					int num3 = ListNotes.Items.Count - 1;
					for (int i = 0; i <= num3; i++)
					{
						num2 = 22;
						ListNotes.Items[i].Selected = false;
						num2 = 23;
					}
					num2 = 24;
					ListNotes.FocusedItem = ListNotes.Items[Conversions.ToString(cNote.ID)];
					num2 = 25;
					ListNotes.FocusedItem.Selected = true;
					num2 = 26;
					DisplaySelectedNote();
					num2 = 27;
					SaveProject(CriticalSave: false);
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num4 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0326: Could not find block for branch target IL_02f2*/;
			}
			if (num4 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void frmMain_KeyDown(object eventSender, KeyEventArgs eventArgs)
		{
			//Discarded unreachable code: IL_01ed, IL_0204, IL_020f, IL_021f, IL_02c5, IL_02c7, IL_02db, IL_02fd
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if ((eventArgs.KeyCode == Keys.Up) | (eventArgs.KeyCode == Keys.Down))
				{
					num2 = 3;
					if (eventArgs.Shift)
					{
						num2 = 4;
						SuppressUpdate = true;
					}
				}
				num2 = 5;
				if (eventArgs.KeyCode == Keys.F3)
				{
					num2 = 6;
					eventArgs.SuppressKeyPress = true;
					num2 = 7;
					if (eventArgs.Shift)
					{
						num2 = 8;
						FindPrevious();
					}
					else
					{
						num2 = 10;
						FindNext();
					}
				}
				num2 = 11;
				if (eventArgs.KeyCode != Keys.F5)
				{
					goto IL_01ca;
				}
				num2 = 12;
				eventArgs.SuppressKeyPress = true;
				num2 = 13;
				if ((Operators.CompareString(SearchString, "", TextCompare: false) == 0) | (SearchSceneID <= 0))
				{
					num2 = 14;
					clsShared.cLang.TransMsgBox("Please perform a search first");
				}
				else
				{
					num2 = 16;
					if (Operators.CompareString(ProblemWordReplacement, "", TextCompare: false) == 0)
					{
						num2 = 17;
						clsShared.cLang.TransMsgBox("Please run a problem word search before pressing replace");
					}
					else
					{
						num2 = 19;
						if (!cProject.Scenes.Contains(SearchSceneID))
						{
							goto IL_01ca;
						}
						num2 = 20;
						clsScene clsScene = cProject.get_SceneByID(SearchSceneID);
						num2 = 21;
						if (!clsScene.Locked)
						{
							num2 = 24;
							clsRTF clsRTF = new clsRTF(ref clsShared.cLog, ref clsShared.cSettings);
							num2 = 25;
							clsRTF.SetRTF(clsScene.TextRTF);
							num2 = 26;
							clsRTF.ReplaceAt(SearchLoc - 1, SearchString, ProblemWordReplacement);
							num2 = 27;
							clsScene.TextRTF = clsRTF.GetRTF();
							num2 = 28;
							if (!cProject.V6File)
							{
								num2 = 29;
								clsScene.SaveRTFV5(cProject.ProjectPath());
							}
							num2 = 30;
							DisplaySelectedScene();
							num2 = 31;
							FindNext();
							goto IL_01ca;
						}
						num2 = 22;
						clsShared.cLang.TransMsgBox("You must close the scene window first");
					}
				}
				goto end_IL_0000;
				IL_01ca:
				num2 = 32;
				if (eventArgs.KeyCode == Keys.F)
				{
					num2 = 33;
					if (eventArgs.Control)
					{
						num2 = 34;
						ShowFind();
					}
				}
				end_IL_0000:;
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_02fb: Could not find block for branch target IL_02c7*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		public void SetupBasePath()
		{
		}

		private void frmMain_Load(object eventSender, EventArgs eventArgs)
		{
			cmbBooks.Visible = false;
			tsbCollab.Visible = false;
			TimerUpdate.Enabled = false;
			modVariables.DATAPATH = new clsFindSettingsFolder(ref clsShared.cLog).FindSettingsFolder("yWriter6.ini");
			try
			{
				clsShared.cFile.MkMissingDir(modVariables.DATAPATH);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
			clsShared.cLog.OverrideLogFilename(Path.Combine(modVariables.DATAPATH, "Log.txt"));
			clsShared.cLog.LogEvent(App.Title + " " + clsShared.cSubs.AppVersion() + " startup", ClearFirst: true);
			Splash = new frmSplash(Resources.yWriter6SplashNew);
			Splash.UpdateSplash("Starting Application");
			Splash.Show();
			cDelay.DoEventsForced();
			try
			{
				clsShared.cFile.EraseFolder(clsShared.cSpecialFolders.LocalAppFolderWithVersion());
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				ProjectData.ClearProjectError();
			}
			try
			{
				TabControlMain.Dock = DockStyle.Fill;
			}
			catch (Exception ex5)
			{
				ProjectData.SetProjectError(ex5);
				Exception ex6 = ex5;
				clsShared.cLog.AddAction(ex6, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				ListScenes.SmallImageList = ImageList2;
				ListChapters.SmallImageList = ImageList2;
			}
			catch (Exception ex7)
			{
				ProjectData.SetProjectError(ex7);
				Exception ex8 = ex7;
				clsShared.cLog.AddAction(ex8, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			if (clsShared.cSubs.InIDE())
			{
				mnuSaveToSingleFile.Visible = true;
				TriggerErrorToolStripMenuItem.Visible = true;
			}
			else
			{
				mnuSaveToSingleFile.Visible = false;
				TriggerErrorToolStripMenuItem.Visible = false;
			}
			try
			{
				modSJ.cSpell.OverridePath(Path.Combine(modVariables.DATAPATH, "Dict"));
			}
			catch (Exception ex9)
			{
				ProjectData.SetProjectError(ex9);
				Exception ex10 = ex9;
				ProjectData.ClearProjectError();
			}
			modConstants.SETTINGS_FILE = Path.Combine(modVariables.DATAPATH, "yWriter6.ini");
			modConstants.GLOBALS_FILE = Path.Combine(modVariables.DATAPATH, "GlobalVars.XML");
			modConstants.SERVERS_FILE = Path.Combine(modVariables.DATAPATH, "MailServers.xml");
			try
			{
				Find = new frmFind(ref clsShared.cLog, ref clsShared.cLang);
			}
			catch (Exception ex11)
			{
				ProjectData.SetProjectError(ex11);
				Exception ex12 = ex11;
				clsShared.cLog.AddAction(ex12, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				cUploader = new clsMain(modVariables.DATAPATH);
				FillFTPDropDowns();
			}
			catch (Exception ex13)
			{
				ProjectData.SetProjectError(ex13);
				Exception ex14 = ex13;
				clsShared.cLog.AddAction(ex14, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			Splash.UpdateSplash("Setting Up");
			SetupStatusNames();
			if (!clsShared.cFile.FileExists(modConstants.SETTINGS_FILE) && MyProject.Application.CommandLineArgs.Count == 0)
			{
				clsShared.cLog.AddAction("Very first run of yWriter (no ini, no command line options.");
				clsShared.cLang.TransMsgBox("You seem to be running yWriter for the first time.@1@@1@yWriter now has a 'Project Wizard' to help you get started:@1@Just click the Project menu, followed by 'New Project Wizard'", MsgBoxStyle.OkOnly, "", "\r\n");
			}
			clsShared.cLog.AddAction("Settings file: " + modConstants.SETTINGS_FILE);
			if (clsShared.cFile.FileExists(modConstants.SETTINGS_FILE))
			{
				clsShared.cLog.AddAction("Size: " + Conversions.ToString(clsShared.cFile.FileSize(modConstants.SETTINGS_FILE)));
			}
			else
			{
				clsShared.cLog.AddAction("(not found)");
			}
			clsShared.cSettings.LoadSettings(modConstants.SETTINGS_FILE);
			try
			{
				clsShared.cLang.SetLanguage(clsShared.cSettings.sGet("LangID", "English"));
				clsLang cLang = clsShared.cLang;
				ToolStripMenuItem mnuParent = mnuChooseLang;
				cLang.FillLanguageMenu(ref mnuParent);
				mnuChooseLang = mnuParent;
				AttachLangMenus();
				if (Operators.CompareString(clsShared.cLang.CurrentLanguage, "English", TextCompare: false) != 0)
				{
					clsShared.cLang.TranslateForm(this);
				}
			}
			catch (Exception ex15)
			{
				ProjectData.SetProjectError(ex15);
				Exception ex16 = ex15;
				clsShared.cLog.AddAction(ex16, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				modVariables.DefaultUIFont = clsShared.cFormFont.DefaultUIFont;
				clsFormFont cFormFont = clsShared.cFormFont;
				ToolStripMenuItem mnuParent = mnuUIFont;
				cFormFont.FillFontMenu(ref mnuParent);
				mnuUIFont = mnuParent;
				clsShared.cFormFont.SetFormFont(this, clsShared.cSettings.sGet("FormFont", modVariables.DefaultUIFont.Name), clsShared.cSettings.sGet("UIFontSize", modVariables.DefaultUIFont.Size));
				clsFormFont cFormFont2 = clsShared.cFormFont;
				mnuParent = mnuUIFont;
				cFormFont2.TickCurrentFont(ref mnuParent);
				mnuUIFont = mnuParent;
				AttachFontMenus();
			}
			catch (Exception ex17)
			{
				ProjectData.SetProjectError(ex17);
				Exception ex18 = ex17;
				clsShared.cLog.AddAction(ex18, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				tssVersion.Text = "v:" + clsShared.cSubs.AppVersion();
			}
			catch (Exception ex19)
			{
				ProjectData.SetProjectError(ex19);
				Exception ex20 = ex19;
				clsShared.cLog.AddAction(ex20, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				cProject = new clsProject();
				AddProjectHandlers();
			}
			catch (Exception ex21)
			{
				ProjectData.SetProjectError(ex21);
				Exception ex22 = ex21;
				clsShared.cLog.AddAction(ex22, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			Splash.UpdateSplash("Loading Dictionaries");
			try
			{
				BackgroundWorker backgroundWorker = new BackgroundWorker();
				backgroundWorker.DoWork += BGSpell_DoWork;
				backgroundWorker.RunWorkerAsync();
			}
			catch (Exception ex23)
			{
				ProjectData.SetProjectError(ex23);
				Exception ex24 = ex23;
				clsShared.cLog.AddAction(ex24, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			LoadLastProject();
			SetupWindows();
			LoadUDW();
			UpdateRecent();
			modVariables.Fonts = new frmPickFont("EditorFontName", "EditorFontSize");
			Updater = new frmUpdater(ref clsShared.cSettings, ref clsShared.cLog);
			Splash.UpdateSplash("Startup Complete");
			Splash.DoHide();
			CheckReg();
			modVariables.cServers = new clsServers(modConstants.SERVERS_FILE);
			if (!modVariables.cServers.LoadServers())
			{
				clsShared.cLog.AddAction("Could not load SMTP server settings");
			}
			if (modVariables.Registered)
			{
				clsShared.cLog.LogEvent("Registered to " + modVariables.RegName);
				GlobalVariablesToolStripMenuItem.Visible = true;
				ProjectVariablesToolStripMenuItem.Visible = true;
				try
				{
					string TextString = "";
					clsShared.cFile.ReadTextAuto(modConstants.GLOBALS_FILE, ref TextString, UseSysEncoding: false);
					modVariables.cVarsGlobal.CreateFromXML(TextString);
				}
				catch (Exception ex25)
				{
					ProjectData.SetProjectError(ex25);
					Exception ex26 = ex25;
					clsShared.cLog.AddAction(ex26, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
			if (clsShared.cFile.FileExists(Path.Combine(modVariables.DATAPATH, "EnableCollab.ini")))
			{
				modVariables.EnableCollab = true;
			}
			else
			{
				modVariables.EnableCollab = false;
			}
			if (!cProject.IsEmpty & GenEbookAndQuit)
			{
				new clsExportToEbook().ExportToEbook(cProject, AskForOutputFile: false, AskWhichChapters: false, ToSingleFiles: false);
				EndProgram();
			}
			else
			{
				TimerUpdate.Enabled = true;
			}
		}

		private void BGSpell_DoWork(object Sender, EventArgs E)
		{
			try
			{
				if (modSJ.cSpell.InitDict())
				{
					clsShared.cLog.AddAction("One or more dictionaries found: spell check enabled");
				}
				else
				{
					clsShared.cLog.AddAction("No dictionaries found: spell check disabled");
					clsShared.cLog.AddAction("(See the help file if you'd like to add a dictionary to yWriter)");
				}
				clsShared.cLog.AddAction("Dictionary folder: " + modSJ.cSpell.DictionaryFolder);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void frmMain_FormClosing(object eventSender, FormClosingEventArgs eventArgs)
		{
			//Discarded unreachable code: IL_0071, IL_0088, IL_0093, IL_00a3, IL_00ed, IL_00ef, IL_0103, IL_0125
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (cProject.Loading | cProject.Saving)
				{
					num2 = 3;
					clsShared.cLog.AddAction("Cancelled main form close because project is still saving");
					num2 = 4;
					eventArgs.Cancel = true;
				}
				else
				{
					num2 = 6;
					if (eventArgs.CloseReason == CloseReason.UserClosing)
					{
						num2 = 7;
						eventArgs.Cancel = true;
						num2 = 8;
						if (!EditorWindowsOpenWarning())
						{
							num2 = 11;
							EndProgram();
						}
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0123: Could not find block for branch target IL_00ef*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void DisplayProject()
		{
			//Discarded unreachable code: IL_00aa, IL_00c1, IL_00cc, IL_00dc, IL_013a, IL_013c, IL_0150, IL_0172
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				SuppressUpdate = true;
				num2 = 3;
				if (!cProject.Collab)
				{
					num2 = 4;
					tsbCollab.Visible = false;
				}
				else
				{
					num2 = 6;
					tsbCollab.Visible = true;
				}
				num2 = 7;
				FillChapterList();
				num2 = 8;
				FillBookList();
				num2 = 9;
				FillCharItemLocLists();
				num2 = 10;
				FillSceneList();
				num2 = 11;
				FillNoteList();
				num2 = 12;
				FillLocCharItemListIfSelected();
				num2 = 13;
				if (ListScenes.FocusedItem != null)
				{
					num2 = 14;
					ListScenes.FocusedItem.EnsureVisible();
				}
				num2 = 15;
				UpdateWindowTitle();
				num2 = 16;
				SuppressUpdate = false;
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0170: Could not find block for branch target IL_013c*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void FillChapterList()
		{
			//Discarded unreachable code: IL_0213, IL_022a, IL_0235, IL_0245, IL_02df, IL_02e1, IL_02f5, IL_0317
			int num = default(int);
			int num4 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				TotalWords = cProject.RecalcProgressive();
				num2 = 3;
				int num3;
				if (ListChapters.FocusedItem == null)
				{
					num2 = 4;
					num3 = 0;
				}
				else
				{
					num2 = 6;
					num3 = Conversions.ToInteger(ListChapters.FocusedItem.Tag);
				}
				num2 = 7;
				txtChapterDesc.Text = "";
				num2 = 8;
				ListChapters.BeginUpdate();
				num2 = 9;
				ListChapters.Items.Clear();
				num2 = 10;
				if (cProject.ChapterCount == 0)
				{
					num2 = 11;
					ToolTip1.SetToolTip(ListChapters, "Use the Chapters menu to add one or more chapters.\r\nIf the menu is greyed out, you need to create a project.");
				}
				else
				{
					num2 = 13;
					ToolTip1.SetToolTip(ListChapters, "");
				}
				num2 = 14;
				IEnumerator enumerator = cProject.Chapters.GetEnumerator();
				while (enumerator.MoveNext())
				{
					clsChapter clsChapter = (clsChapter)enumerator.Current;
					num2 = 15;
					ListViewItem oItem = ListChapters.Items.Add(Conversions.ToString(clsChapter.ID), "", "");
					num2 = 16;
					oItem.Selected = false;
					num2 = 17;
					UpdateListItemFromChapter(ref oItem, clsChapter.ID);
					num2 = 18;
				}
				num2 = 19;
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
				num2 = 20;
				if (ListChapters.Items.Count > 0)
				{
					num2 = 21;
					ListViewItem listViewItem;
					if (ListChapters.Items.ContainsKey(Conversions.ToString(num3)))
					{
						num2 = 22;
						listViewItem = ListChapters.Items[Conversions.ToString(num3)];
						num2 = 23;
						DisplayChapterDesc(num3);
					}
					else
					{
						num2 = 25;
						listViewItem = ListChapters.Items[0];
						num2 = 26;
						DisplayChapterDesc(Conversions.ToInteger(listViewItem.Tag));
					}
					num2 = 27;
					ListChapters.FocusedItem = listViewItem;
					num2 = 28;
					listViewItem.Selected = true;
					num2 = 29;
					listViewItem.EnsureVisible();
				}
				num2 = 30;
				DisplayProgressive(Recalc: false);
				num2 = 31;
				ListChapters.EndUpdate();
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num4 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0315: Could not find block for branch target IL_02e1*/;
			}
			if (num4 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void FillBookList()
		{
			clsBook clsBook = new clsBook();
			cmbBooks.Items.Clear();
			cmbBooks.DisplayMember = "Title";
			clsBook.ID = 0;
			clsBook.Title = "All Books";
			cmbBooks.Items.Add(clsBook);
			IEnumerator enumerator = default(IEnumerator);
			try
			{
				enumerator = cProject.Books.GetEnumerator();
				while (enumerator.MoveNext())
				{
					clsBook = (clsBook)enumerator.Current;
					cmbBooks.Items.Add(clsBook);
				}
			}
			finally
			{
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
			}
			cmbBooks.SelectedIndex = 0;
		}

		private void ListChapters_Click(object sender, EventArgs e)
		{
			if (ListChapters.FocusedItem != null)
			{
				SearchChapterIndex = ListChapters.FocusedItem.Index;
				SearchSceneIndex = -1;
			}
		}

		private void ListChapters_DoubleClick(object eventSender, EventArgs eventArgs)
		{
			EditSelectedChapter();
		}

		private void FillProjectCharList()
		{
			//Discarded unreachable code: IL_01bd, IL_01d4, IL_01df, IL_01ef, IL_0261, IL_0263, IL_0277, IL_0299
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				modScenesPerChar.UpdateScenesPerChar(cProject);
				num2 = 3;
				modWordsPerChar.UpdateWordsPerChar(cProject);
				num2 = 4;
				ListProjectCharacters.BeginUpdate();
				num2 = 5;
				ListProjectCharacters.Items.Clear();
				num2 = 6;
				IEnumerator enumerator = cProject.Chars.GetEnumerator();
				while (enumerator.MoveNext())
				{
					clsCharacter clsCharacter = (clsCharacter)enumerator.Current;
					num2 = 7;
					ListViewItem listViewItem = ListProjectCharacters.Items.Add(Conversions.ToString(clsCharacter.ID), clsCharacter.Title, "");
					while (true)
					{
						num2 = 9;
						if (listViewItem.SubItems.Count >= ListProjectCharacters.Columns.Count)
						{
							break;
						}
						num2 = 10;
						listViewItem.SubItems.Add("");
					}
					num2 = 12;
					listViewItem.SubItems[1].Text = clsCharacter.FullName;
					num2 = 13;
					listViewItem.SubItems[2].Text = clsCharacter.AKA;
					num2 = 14;
					listViewItem.SubItems[3].Text = Conversions.ToString(clsCharacter.VPSceneCount);
					num2 = 15;
					listViewItem.SubItems[4].Text = Conversions.ToString(clsCharacter.SceneCount);
					num2 = 16;
					listViewItem.SubItems[5].Text = Conversions.ToString(clsCharacter.WordCount);
					num2 = 17;
					listViewItem.SubItems[6].Text = Conversions.ToString(clsCharacter.VPSceneCountUnused);
					num2 = 18;
				}
				num2 = 19;
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
				num2 = 20;
				ListProjectCharacters.EndUpdate();
				num2 = 21;
				cDelay.DoEvents();
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0297: Could not find block for branch target IL_0263*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void FillProjectLocList()
		{
			//Discarded unreachable code: IL_0151, IL_0168, IL_0173, IL_0183, IL_01e9, IL_01eb, IL_01ff, IL_0221
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				clsScenesPerLocation clsScenesPerLocation = new clsScenesPerLocation();
				num2 = 3;
				clsScenesPerLocation.UpdateScenesPerLocation(cProject);
				num2 = 4;
				clsScenesPerLocation = null;
				num2 = 5;
				ListProjectLocations.BeginUpdate();
				num2 = 6;
				ListProjectLocations.Items.Clear();
				num2 = 7;
				IEnumerator enumerator = cProject.Locations.GetEnumerator();
				while (enumerator.MoveNext())
				{
					clsLocation clsLocation = (clsLocation)enumerator.Current;
					num2 = 8;
					ListViewItem listViewItem = ListProjectLocations.Items.Add(Conversions.ToString(clsLocation.ID), clsLocation.Title, "");
					while (true)
					{
						num2 = 10;
						if (listViewItem.SubItems.Count >= ListProjectLocations.Columns.Count)
						{
							break;
						}
						num2 = 11;
						listViewItem.SubItems.Add("");
					}
					num2 = 13;
					listViewItem.SubItems[1].Text = clsShared.cText.CRLFToSpaces(clsLocation.DescText);
					num2 = 14;
					listViewItem.SubItems[2].Text = Conversions.ToString(clsLocation.SceneCount);
					num2 = 15;
				}
				num2 = 16;
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
				num2 = 17;
				ListProjectLocations.EndUpdate();
				num2 = 18;
				cDelay.DoEvents();
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_021f: Could not find block for branch target IL_01eb*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void FillProjectItemList()
		{
			//Discarded unreachable code: IL_013e, IL_0155, IL_0160, IL_0170, IL_01ce, IL_01d0, IL_01e4, IL_0206
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				modScenesPerItem.UpdateScenesPerItem(cProject);
				num2 = 3;
				ListProjectItems.BeginUpdate();
				num2 = 4;
				ListProjectItems.Items.Clear();
				num2 = 5;
				IEnumerator enumerator = cProject.Items.GetEnumerator();
				while (enumerator.MoveNext())
				{
					clsItem clsItem = (clsItem)enumerator.Current;
					num2 = 6;
					ListViewItem listViewItem = ListProjectItems.Items.Add(Conversions.ToString(clsItem.ID), clsItem.Title, "");
					while (true)
					{
						num2 = 8;
						if (listViewItem.SubItems.Count >= ListProjectItems.Columns.Count)
						{
							break;
						}
						num2 = 9;
						listViewItem.SubItems.Add("");
					}
					num2 = 11;
					listViewItem.SubItems[1].Text = clsShared.cText.CRLFToSpaces(clsItem.DescText);
					num2 = 12;
					listViewItem.SubItems[2].Text = Conversions.ToString(clsItem.SceneCount);
					num2 = 13;
				}
				num2 = 14;
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
				num2 = 15;
				ListProjectItems.EndUpdate();
				num2 = 16;
				cDelay.DoEvents();
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0204: Could not find block for branch target IL_01d0*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ListItems_DoubleClick(object eventSender, EventArgs eventArgs)
		{
			try
			{
				ListView listView = (ListView)eventSender;
				if (listView.FocusedItem != null)
				{
					DisplayedSceneID();
					int itemID = (int)Math.Round(Conversion.Val(RuntimeHelpers.GetObjectValue(listView.FocusedItem.Tag)));
					modEditItem.EditItem(ref cProject, itemID);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListLoc_DoubleClick(object eventSender, EventArgs eventArgs)
		{
			try
			{
				ListView listView = (ListView)eventSender;
				if (listView.FocusedItem != null)
				{
					int locationID = (int)Math.Round(Conversion.Val(RuntimeHelpers.GetObjectValue(listView.FocusedItem.Tag)));
					DisplayedSceneID();
					modEditLocation.EditLocation(ref cProject, locationID);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListNotes_AfterLabelEdit(object eventSender, LabelEditEventArgs eventArgs)
		{
			try
			{
				if (Operators.CompareString(eventArgs.Label, "", TextCompare: false) == 0)
				{
					eventArgs.CancelEdit = true;
				}
				if (Operators.CompareString(eventArgs.Label, ListNotes.FocusedItem.Text, TextCompare: false) != 0)
				{
					cProject.get_NoteByID(Conversions.ToInteger(ListNotes.FocusedItem.Tag)).Title = eventArgs.Label;
					DisplaySelectedNote();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void DisplaySelectedNote()
		{
			try
			{
				SetupNoteForDisplay();
				if (ListNotes.FocusedItem != null)
				{
					int num = Conversions.ToInteger(ListNotes.FocusedItem.Tag);
					clsNote clsNote = cProject.get_NoteByID(num);
					txtNoteEditor.Text = clsNote.DescText;
					txtNoteEditor.Tag = num;
					txtNoteTitle.Text = clsNote.Title;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListNotes_DragDrop(object sender, DragEventArgs e)
		{
			try
			{
				if (HighlightedNote != Rectangle.Empty)
				{
					ListNotes.Invalidate(HighlightedNote);
				}
				if (!DraggingNote)
				{
					e.Effect = DragDropEffects.None;
				}
				else if (e.Effect == DragDropEffects.Move)
				{
					string[] array = (string[])e.Data.GetData(DataFormats.StringFormat);
					if (array.Length != 0)
					{
						Point point = ListNotes.PointToClient(new Point(e.X, e.Y));
						ListViewItem itemAt = ListNotes.GetItemAt(point.X, point.Y);
						if (itemAt == null)
						{
							e.Effect = DragDropEffects.None;
						}
						else
						{
							int destID = Conversions.ToInteger(itemAt.Tag);
							int num = array.Length - 1;
							for (int i = 0; i <= num; i++)
							{
								int sourceID = Conversions.ToInteger(array[i]);
								cProject.ChangeNoteSortOrder(sourceID, destID);
							}
							cProject.ResortNotes();
							FillNoteList();
						}
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListNotes_DragLeave(object sender, EventArgs e)
		{
			try
			{
				DraggingNote = false;
				if (HighlightedNote != Rectangle.Empty)
				{
					ListNotes.Invalidate(HighlightedNote);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListNotes_DragOver(object sender, DragEventArgs e)
		{
			try
			{
				if (e.Data.GetDataPresent(DataFormats.StringFormat, autoConvert: false) && DraggingNote)
				{
					e.Effect = DragDropEffects.Move;
					clsListItemHighlight clsListItemHighlight = new clsListItemHighlight();
					ListView TargetList = ListNotes;
					clsListItemHighlight.HighlightTarget(e, ref TargetList, ref HighlightedNote);
					ListNotes = TargetList;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListNotes_ItemDrag(object sender, ItemDragEventArgs e)
		{
			if (e.Button == MouseButtons.Left)
			{
				try
				{
					string[] array = new string[ListNotes.SelectedItems.Count - 1 + 1];
					DraggingNote = true;
					int num = 0;
					IEnumerator enumerator = default(IEnumerator);
					try
					{
						enumerator = ListNotes.SelectedItems.GetEnumerator();
						while (enumerator.MoveNext())
						{
							ListViewItem listViewItem = (ListViewItem)enumerator.Current;
							array[num] = Conversions.ToString(listViewItem.Tag);
							num++;
						}
					}
					finally
					{
						if (enumerator is IDisposable)
						{
							(enumerator as IDisposable).Dispose();
						}
					}
					DoDragDrop(new DataObject(DataFormats.StringFormat, array), DragDropEffects.Move);
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void ListNotes_KeyDown(object eventSender, KeyEventArgs eventArgs)
		{
			try
			{
				if (eventArgs.KeyCode == Keys.Delete)
				{
					DeleteSelectedNotes();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void DeleteSelectedNotes()
		{
			//Discarded unreachable code: IL_00b7, IL_00ce, IL_00d9, IL_00e9, IL_0137, IL_0139, IL_014d, IL_016f
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (ListNotes.SelectedItems.Count == 0)
				{
					num2 = 3;
					clsShared.cLang.TransMsgBox("Select one or more notes to delete");
				}
				else
				{
					num2 = 6;
					if (clsShared.cLang.TransMsgBox("Delete the selected note(s)?", MsgBoxStyle.YesNo) != MsgBoxResult.No)
					{
						num2 = 8;
						IEnumerator enumerator = ListNotes.SelectedItems.GetEnumerator();
						while (enumerator.MoveNext())
						{
							ListViewItem listViewItem = (ListViewItem)enumerator.Current;
							num2 = 9;
							cProject.Notes.RemoveByID(Conversions.ToInteger(listViewItem.Tag));
							num2 = 10;
						}
						num2 = 11;
						if (enumerator is IDisposable)
						{
							(enumerator as IDisposable).Dispose();
						}
						num2 = 12;
						FillNoteList();
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_016d: Could not find block for branch target IL_0139*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ListScenes_DragDrop(object sender, DragEventArgs e)
		{
			try
			{
				if (HighlightedScene != Rectangle.Empty)
				{
					ListScenes.Invalidate(HighlightedScene);
				}
				Point point = ListScenes.PointToClient(new Point(e.X, e.Y));
				ListViewItem itemAt = ListScenes.GetItemAt(point.X, point.Y);
				if (itemAt == null)
				{
					e.Effect = DragDropEffects.None;
				}
				else
				{
					int num = Conversions.ToInteger(itemAt.Tag);
					clsScene clsScene = cProject.get_SceneByID(num);
					if (e.Effect == DragDropEffects.Move)
					{
						string[] array = (string[])e.Data.GetData(DataFormats.StringFormat);
						if (array.Length != 0)
						{
							SuppressUpdate = true;
							clsScene.MarkUpdated(DateAndTime.Now);
							int belongsToChID = clsScene.BelongsToChID;
							if (num > 0)
							{
								if (DraggingScene)
								{
									int num2 = array.Length - 1;
									for (int i = 0; i <= num2; i++)
									{
										int num3 = Conversions.ToInteger(array[i]);
										if (num != num3)
										{
											cProject.get_ChapterByID(belongsToChID).RemoveSceneByID(num3);
											cProject.get_ChapterByID(belongsToChID).InsertSceneBeforeID(num3, num);
											cProject.get_SceneByID(num3).MarkUpdated(DateAndTime.Now);
										}
									}
									cProject.get_ChapterByID(belongsToChID).Save();
								}
								else
								{
									_ = (DraggingChar | DraggingItems | DraggingLoc);
								}
								ResetDraggingWhat();
							}
							SuppressUpdate = false;
						}
					}
					else if (e.Effect == DragDropEffects.Copy)
					{
						if (clsScene.Locked)
						{
							Interaction.MsgBox("That scene is locked. Please close the editor before drag/dropping text onto scenes.");
						}
						else
						{
							string[] array2 = (string[])e.Data.GetData(DataFormats.FileDrop);
							clsRTF clsRTF = new clsRTF(ref clsShared.cLog, ref clsShared.cSettings);
							string TextString = "";
							clsRTF.SetRTF(clsScene.TextRTF);
							int num4 = array2.Length - 1;
							bool flag = default(bool);
							for (int j = 0; j <= num4; j++)
							{
								string text = array2[j];
								if (text.ToLower().EndsWith(".rtf"))
								{
									if (clsShared.cFile.ReadAsciiForced(text, ref TextString))
									{
										clsRTF.AppendRTF(TextString);
										flag = true;
									}
								}
								else if (array2[j].ToLower().EndsWith(".txt"))
								{
									if (clsShared.cFile.ReadTextAuto(text, ref TextString, UseSysEncoding: true))
									{
										clsRTF.AppendPlainText(TextString);
										flag = true;
									}
								}
								else
								{
									clsShared.cLog.AddAction("User tried to drop non-rtf and non-txt files onto a scene", MethodBase.GetCurrentMethod());
								}
							}
							if (flag)
							{
								clsScene.TextRTF = clsRTF.GetRTF();
								clsScene.SaveRTFV5(cProject.ProjectPath());
								clsScene.Save();
							}
						}
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListScenes_MouseDown(object eventSender, MouseEventArgs eventArgs)
		{
			try
			{
				if (eventArgs.Button == MouseButtons.Left && ((Control.ModifierKeys & Keys.ShiftKey) | (Control.ModifierKeys & Keys.LControlKey)) != 0)
				{
					SuppressUpdate = true;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListGoals_MouseUp(ref short Button, ref short Shift, ref float x, ref float Y)
		{
		}

		private void ListScenes_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				if (ListScenes.FocusedItem != null)
				{
					SearchSceneIndex = ListScenes.FocusedItem.Index;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void ListScenes_DoubleClick(object eventSender, EventArgs eventArgs)
		{
			EditSelectedScene();
		}

		private void EditSelectedScene()
		{
			//Discarded unreachable code: IL_0051, IL_0067, IL_0072, IL_007f, IL_00b5, IL_00b7, IL_00cb, IL_00ed
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (ListScenes.Items.Count != 0)
				{
					num2 = 4;
					if (ListScenes.FocusedItem != null)
					{
						num2 = 6;
						EditScene(ref cProject, Conversions.ToInteger(ListScenes.FocusedItem.Tag));
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_00eb: Could not find block for branch target IL_00b7*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ListScenes_KeyDown(object eventSender, KeyEventArgs eventArgs)
		{
			//Discarded unreachable code: IL_0069, IL_0080, IL_008b, IL_009b, IL_00d9, IL_00db, IL_00ef, IL_0111
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (eventArgs.KeyCode == Keys.Return)
				{
					num2 = 3;
					eventArgs.SuppressKeyPress = true;
					num2 = 4;
					if (ListScenes.Items.Count != 0)
					{
						num2 = 6;
						if (ListScenes.FocusedItem != null)
						{
							num2 = 8;
							EditScene(ref cProject, Conversions.ToInteger(ListScenes.FocusedItem.Tag));
						}
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_010f: Could not find block for branch target IL_00db*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ListScenes_KeyUp(object eventSender, KeyEventArgs eventArgs)
		{
			try
			{
				if ((eventArgs.KeyCode == Keys.Up) | (eventArgs.KeyCode == Keys.Down))
				{
					_ = eventArgs.KeyCode;
					_ = 38;
					DisplaySelectedScene();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuAbout_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				frmAbout frmAbout = new frmAbout(ref clsShared.cLog);
				frmAbout.ChangeDonateToRegister(Strings.Replace("http://www.spacejock.com/PROG_Register.html", "PROG", "yWriter6"), "yWriter6");
				frmAbout.Show();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuAddCharToScene_Click(object eventSender, EventArgs eventArgs)
		{
			AddCharToSelectedScene();
		}

		public void mnuAddItem_Click(object eventSender, EventArgs eventArgs)
		{
			modEditItem.AddEditItems(ref cProject, ShowChooser: true);
		}

		public void mnuAddItemToCurrentScene_Click(object eventSender, EventArgs eventArgs)
		{
			AddItemToSelectedScene();
		}

		public void mnuAddLocation_Click(object eventSender, EventArgs eventArgs)
		{
			modEditLocation.AddEditLocations(ref cProject, ShowChooser: true);
		}

		public void mnuAddLocToCurrentScene_Click(object eventSender, EventArgs eventArgs)
		{
			AddLocationToSelectedScene();
		}

		public void mnuAddMultiScenes_Click(object eventSender, EventArgs eventArgs)
		{
			//Discarded unreachable code: IL_010c, IL_0123, IL_012e, IL_013e, IL_01a8, IL_01aa, IL_01be, IL_01e0
			int num = default(int);
			int num7 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				int num3 = SelectedChapterID();
				num2 = 3;
				if (num3 <= 0)
				{
					num2 = 4;
					clsShared.cLang.TransMsgBox("Select a chapter first");
				}
				else
				{
					num2 = 6;
					int num4 = (int)Math.Round(Conversion.Val(Interaction.InputBox("How many scenes would you like to add to this chapter?", "", "5")));
					num2 = 7;
					if (num4 > 20)
					{
						num2 = 8;
						clsShared.cLang.TransMsgBox("Please specify 20 scenes or less");
					}
					else
					{
						num2 = 10;
						clsChapter clsChapter = cProject.get_ChapterByID(num3);
						num2 = 11;
						int num5 = num4;
						for (int i = 1; i <= num5; i++)
						{
							num2 = 12;
							int num6 = cProject.AddNewScene(num3);
							num2 = 13;
							clsScene clsScene = cProject.get_SceneByID(num6);
							num2 = 14;
							clsScene.Title = "New Scene " + Conversions.ToString(i);
							num2 = 15;
							clsChapter.AddSceneID(num6);
							num2 = 16;
							clsScene.Save();
							num2 = 17;
						}
						num2 = 18;
						clsChapter.Save();
						num2 = 19;
						cProject.QuickSave();
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num7 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_01de: Could not find block for branch target IL_01aa*/;
			}
			if (num7 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		public void mnuAddScene_Click(object eventSender, EventArgs eventArgs)
		{
			//Discarded unreachable code: IL_0028, IL_003e, IL_0048, IL_0055, IL_0087, IL_0089, IL_009d, IL_00bf
			int num = default(int);
			int num4 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				int num3 = SelectedChapterID();
				num2 = 3;
				if (num3 != 0)
				{
					num2 = 5;
					CreateNewScene(ref cProject, num3);
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num4 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_00bd: Could not find block for branch target IL_0089*/;
			}
			if (num4 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		public void mnuAutobackups_Click(object eventSender, EventArgs eventArgs)
		{
			new frmBackupViewer(ref cProject).ShowDialog();
		}

		public void mnuBackupProject_Click(object eventSender, EventArgs eventArgs)
		{
			DoCompleteBackup();
		}

		private void DoCompleteBackup()
		{
			try
			{
				if (cProject.NotBlank() && SaveProject(CriticalSave: false))
				{
					clsShared.cSubs.BusyMouse();
					if (cProject.BackupProject(WithSceneContent: true))
					{
						cProject.BackupProjectToAltfolder(WithSceneContent: true);
						tssBackupButton.Visible = false;
						clsShared.cSubs.NormalMouse();
						clsShared.cLang.TransMsgBox("Backup to @1@ complete.", MsgBoxStyle.OkOnly, "", cProject.TodaysBackupFolder());
					}
					else
					{
						clsShared.cSubs.NormalMouse();
						clsShared.cLang.TransMsgBox("Backup failed. See the yWriter log file for details.");
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuChart_Click(object eventSender, EventArgs eventArgs)
		{
			new frmChart(cProject).ShowDialog();
		}

		public void mnuCheckVersion_Click(object eventSender, EventArgs eventArgs)
		{
			//Discarded unreachable code: IL_003a, IL_0050, IL_005a, IL_0067, IL_0099, IL_009b, IL_00af, IL_00d1
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (cProject.NotBlank())
				{
					num2 = 3;
					SaveProject(CriticalSave: false);
				}
				num2 = 4;
				TimerUpdate.Enabled = false;
				num2 = 5;
				CheckForUpdate(SuppressForm: false, Beta: false);
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_00cf: Could not find block for branch target IL_009b*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		public void mnuCloseProject_Click(object eventSender, EventArgs eventArgs)
		{
			CloseProject();
		}

		private bool CloseProject()
		{
			bool result = default(bool);
			try
			{
				result = false;
				if (!EditorWindowsOpenWarning())
				{
					if (!cProject.IsEmpty)
					{
						clsShared.cLog.AddAction("Saving current project " + cProject.FileWithPath);
						SaveProject(CriticalSave: true);
						CloseExternalWindows();
						cProject.UnlockProject(cProject.FileWithPath);
					}
					tssBackupButton.Visible = false;
					clsShared.cLog.AddAction("Emptying cProject class");
					cProject.Clear(FilenameToo: true);
					TabControlMain.SelectedTab = TabChapterScenes;
					clsShared.cLog.AddAction("Displaying empty project");
					DisplayProject();
					mvarSelectedSceneID = 0;
					result = true;
					return result;
				}
				clsShared.cLog.AddAction("Could not close project - editor windows open.");
				return result;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
				return result;
			}
		}

		public void mnuCombineFiles_Click(object eventSender, EventArgs eventArgs)
		{
			new clsExportToText().ExportToText(cProject);
		}

		public void mnuConfirmExit_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				if (!EditorWindowsOpenWarning())
				{
					EndProgram();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuConvYW2Scn_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = ListScenes.SelectedItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						ListViewItem lI = (ListViewItem)enumerator.Current;
						ConvYW2(lI);
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
				clsShared.cLang.TransMsgBox("The original scenes have been split into the yW2 scenes they contained. Check them over, and once you're sure the details have migrated properly you should delete the source scenes.");
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ConvYW2(ListViewItem LI)
		{
			try
			{
				int num = Conversions.ToInteger(LI.Tag);
				if (num > 0)
				{
					clsScene clsScene = cProject.get_SceneByID(num);
					if (Strings.InStr(clsScene.ConvertedToPlainText(), "<@@@>") > 0)
					{
						string Content = Strings.Trim(clsScene.ConvertedToPlainText().Substring(0, Strings.InStr(clsScene.ConvertedToPlainText(), "<@@@>") - 1));
						clsShared.cText.EatCrapFromEnd(ref Content);
						if (Strings.InStr(Content, "words)") > 0)
						{
							Content = clsScene.DescText;
						}
						clsYW2Text clsYW2Text = new clsYW2Text(ref clsShared.cLog);
						clsYW2Text.SetText(clsScene.ConvertedToPlainText(), CountWords: false);
						int belongsToChID = clsScene.BelongsToChID;
						int num2 = cProject.get_ChapterByID(belongsToChID).SceneIndex(num) + 1;
						if (clsYW2Text.SceneCount >= 1)
						{
							int sceneCount = clsYW2Text.SceneCount;
							IEnumerator enumerator = default(IEnumerator);
							int iD = default(int);
							for (int i = 1; i <= sceneCount; i++)
							{
								clsScene Scene = new clsScene();
								Scene.V6 = cProject.V6File;
								Scene.BelongsToChID = belongsToChID;
								Scene.Conflict = clsYW2Text.get_Scene(i).Conflict;
								Scene.Day_Renamed = clsYW2Text.get_Scene(i).Day_Renamed;
								if (clsYW2Text.get_Scene(i).LongDesc == null)
								{
									Scene.DescText = Content;
								}
								else if (Operators.CompareString(clsYW2Text.get_Scene(i).LongDesc, "N/A", TextCompare: false) != 0)
								{
									Scene.DescText = clsYW2Text.get_Scene(i).LongDesc;
								}
								else
								{
									Scene.DescText = Content;
								}
								((clsSceneBase)Scene).set_Field(1, clsYW2Text.get_Scene(i).Field1);
								((clsSceneBase)Scene).set_Field(2, clsYW2Text.get_Scene(i).Field2);
								((clsSceneBase)Scene).set_Field(3, clsYW2Text.get_Scene(i).Field3);
								((clsSceneBase)Scene).set_Field(4, clsYW2Text.get_Scene(i).Field4);
								Scene.Goal = clsYW2Text.get_Scene(i).Goal;
								Scene.Hour_Renamed = clsYW2Text.get_Scene(i).Hour_Renamed;
								Scene.LastsDays = clsYW2Text.get_Scene(i).LastsDays;
								Scene.LastsHours = clsYW2Text.get_Scene(i).LastsHours;
								Scene.LastsMinutes = clsYW2Text.get_Scene(i).LastsMinutes;
								Scene.Minute_Renamed = clsYW2Text.get_Scene(i).Minute_Renamed;
								Scene.Outcome = clsYW2Text.get_Scene(i).Result;
								Scene.Status = clsYW2Text.get_Scene(i).Status - 1;
								Scene.TextRTF = Strings.Trim(clsYW2Text.get_Scene(i).Content);
								if (Operators.CompareString(clsYW2Text.get_Scene(i).Desc, "N/A", TextCompare: false) != 0)
								{
									Scene.Title = clsYW2Text.get_Scene(i).Desc;
								}
								else if (clsYW2Text.SceneCount == 1)
								{
									Scene.Title = clsScene.Title;
								}
								else
								{
									Scene.Title = clsScene.Title + " part " + Conversions.ToString(i);
								}
								string actor = clsYW2Text.get_Scene(i).Actor;
								bool flag = false;
								try
								{
									enumerator = cProject.Chars.GetEnumerator();
									while (enumerator.MoveNext())
									{
										clsCharacter clsCharacter = (clsCharacter)enumerator.Current;
										if (clsShared.cText.StringsEqual(clsCharacter.Title, actor))
										{
											iD = clsCharacter.ID;
											flag = true;
											break;
										}
									}
								}
								finally
								{
									if (enumerator is IDisposable)
									{
										(enumerator as IDisposable).Dispose();
									}
								}
								if (!flag)
								{
									clsCharacter clsCharacter = new clsCharacter();
									clsCharacter.Title = actor;
									clsCharacter.AKA = "";
									clsCharacter.Bio = "";
									clsCharacter.FullName = actor;
									clsCharacter.Goals = "";
									cProject.AddChar(ref clsCharacter);
									iD = clsCharacter.ID;
								}
								Scene.SetViewpointByID(iD);
								cProject.AddSceneToProjectAndChapter(ref Scene, belongsToChID, num2);
								Scene.SaveRTFV5(cProject.ProjectPath());
								num2++;
							}
						}
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuCreateChapters_Click(object eventSender, EventArgs eventArgs)
		{
			int num;
			try
			{
				num = Conversions.ToInteger(Interaction.InputBox("How many chapters would you like to create?", "", Conversions.ToString(10)));
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				num = 0;
				ProjectData.ClearProjectError();
			}
			if (num > 0)
			{
				if (num > 100)
				{
					clsShared.cLang.TransMsgBox("Please specify 100 chapters or less");
				}
				else
				{
					try
					{
						string str = "Chapter ";
						int num2 = cProject.Chapters.Count + 1;
						try
						{
							IEnumerator enumerator = default(IEnumerator);
							try
							{
								enumerator = cProject.Chapters.GetEnumerator();
								while (enumerator.MoveNext())
								{
									clsChapter clsChapter = (clsChapter)enumerator.Current;
									string text = Strings.Trim(clsChapter.Title);
									int num3 = Strings.InStrRev(text, " ");
									if (num3 > 0 && Conversion.Val(Strings.Mid(text, num3 + 1)) > (double)num2)
									{
										num2 = (int)Math.Round(Conversion.Val(Strings.Mid(text, num3 + 1)));
									}
								}
							}
							finally
							{
								if (enumerator is IDisposable)
								{
									(enumerator as IDisposable).Dispose();
								}
							}
						}
						catch (Exception ex3)
						{
							ProjectData.SetProjectError(ex3);
							Exception ex4 = ex3;
							ProjectData.ClearProjectError();
						}
						int num4 = num;
						for (int i = 1; i <= num4; i++)
						{
							clsChapter clsChapter = new clsChapter();
							clsChapter.Title = str + Conversions.ToString(num2 + i);
							clsChapter.SortOrder = num + i;
							cProject.AddChapter(ref clsChapter);
						}
						SaveProject(CriticalSave: false);
					}
					catch (Exception ex5)
					{
						ProjectData.SetProjectError(ex5);
						Exception ex6 = ex5;
						clsShared.cLog.AddAction(Information.Err(), MethodBase.GetCurrentMethod());
						ProjectData.ClearProjectError();
					}
				}
			}
		}

		public void mnuCreateDebug_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				string TextString = "";
				Collection AllFiles = new Collection();
				StringBuilder stringBuilder = new StringBuilder();
				if (cProject.NotBlank())
				{
					SaveProject(CriticalSave: true);
				}
				clsShared.cLog.AddAction("Creating debug file");
				clsShared.cFile.LoadTextFile(cProject.FileWithPath, ref TextString);
				clsShared.cFile.FillFiles(yW5Lib.modSubs.RTFPathV5(cProject.ProjectPath()), "*.rtf", ref AllFiles);
				int count = AllFiles.Count;
				for (int i = 1; i <= count; i++)
				{
					string text = Path.Combine(yW5Lib.modSubs.RTFPathV5(cProject.ProjectPath()), Conversions.ToString(AllFiles[i]));
					stringBuilder.Append(text + " " + Conversions.ToString(clsShared.cFile.FileSize(text)) + " " + Conversions.ToString(clsShared.cFile.FileDate(text)) + "\r\n");
				}
				TextString = clsShared.cHtml.ReplaceBetweenTags(TextString, "<desc>", "</desc>", "Description Removed");
				TextString = clsShared.cHtml.ReplaceBetweenTags(TextString, "<title>", "</title>", "Title Removed");
				TextString = clsShared.cHtml.ReplaceBetweenTags(TextString, "<bio>", "</bio>", "Bio Removed");
				TextString = clsShared.cHtml.ReplaceBetweenTags(TextString, "<goals>", "</goals>", "Goals Removed");
				string text2 = clsShared.cFile.FileWithoutExt(cProject.FileWithPath) + "_yw5.dbg";
				string text3 = clsShared.cFile.FileWithoutExt(cProject.FileWithPath) + "_yw5_rtf.dbg";
				clsShared.cFile.SaveTextFile(text2, TextString);
				clsShared.cFile.SaveTextFile(text3, stringBuilder.ToString());
				clsShared.cLog.AddAction("Created debug files " + text2 + " and " + text3);
				string text4 = clsShared.cFile.FileWithoutExt(text2) + ".zip";
				if (cProject.BackupThisFile(text2, text4))
				{
					clsShared.cFile.EraseFile(text2);
					clsShared.cLog.AddAction("Zipped debug file to " + text4);
					cProject.BackupThisFile(text3, text4);
					clsShared.cFile.EraseFile(text3);
					clsShared.cLog.AddAction("Added files list");
					cProject.BackupThisFile(clsShared.cSettings.CurrentSettingsFile, text4);
					clsShared.cLog.AddAction("Added yWriter6.ini");
					cProject.BackupThisFile(modConstants.SERVERS_FILE, text4);
					cProject.BackupThisFile(modConstants.GLOBALS_FILE, text4);
					cProject.BackupThisFile(clsShared.cLog.CurrentLogFilename(), text4);
					clsShared.cLang.TransMsgBox("Your debug info has been stored in @1@ Note - all descriptions and notes have been removed from the debug file, and no scene content has been included.", MsgBoxStyle.OkOnly, "", text4 + "\r\n");
				}
				else
				{
					clsShared.cLang.TransMsgBox("Unable to zip the debug file. However, you can still zip and send @1@ manually.", MsgBoxStyle.OkOnly, "", text2);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void mnuEditSelectedScene_Click()
		{
			EditSelectedScene();
		}

		public void mnuExportToRTF_Click(object eventSender, EventArgs eventArgs)
		{
			bool saveSummaries = (clsShared.cLang.TransMsgBox("Save summaries to file as well?", MsgBoxStyle.YesNo) == MsgBoxResult.Yes) ? true : false;
			new clsExportToRTF().ExportToRTF(cProject, ByChapter: false, saveSummaries);
		}

		public void mnuGoogleGroup_Click(object eventSender, EventArgs eventArgs)
		{
			clsShared.cWWW.WebSiteVisit("http://groups.google.com/group/ywriter");
		}

		public void mnuImportSceneFile_Click(object eventSender, EventArgs eventArgs)
		{
			ImportSceneFileToProject(V6File: false);
		}

		private void ImportSceneFileToProject(bool V6File)
		{
			try
			{
				if (SaveAndContinue("Importing an outline will save the current project and create a new one. Are you sure?"))
				{
					if (modImportOutlineToScenes.ImportOutlineToScenes(ref cProject, V6File))
					{
						string fontname = clsShared.cSettings.sGet("EditorFontName", "Segoe UI");
						float fontSize = clsShared.cSettings.sGet("EditorFontSize", 10f);
						SetFontAcrossAllScenes(fontname, fontSize);
					}
					else
					{
						CloseProject();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		[MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
		public void mnuImportyWriter3_Click(object eventSender, EventArgs eventArgs)
		{
			//Discarded unreachable code: IL_00fc, IL_0113, IL_011e, IL_012e, IL_0184, IL_0186, IL_019a, IL_01bc
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				TimerUpdate.Enabled = false;
				num2 = 3;
				if (SaveAndContinue("Are you sure you want to import a yWriter3 project? (If you proceed, your current project will be saved first.)"))
				{
					num2 = 5;
					string file = clsShared.cFileSel.GetFile(clsShared.cSpecialFolders.MyDocsFolder, "Project.yw3", "Select the YW3 project you want to import", "*.yw3");
					num2 = 6;
					clsImportYW3 clsImportYW = new clsImportYW3();
					num2 = 7;
					if (Operators.CompareString(file, "", TextCompare: false) != 0)
					{
						num2 = 8;
						CloseExternalWindows();
						num2 = 9;
						if (clsImportYW.ImportYW3(ref cProject, file))
						{
							num2 = 10;
							SaveProject(CriticalSave: true);
							num2 = 11;
							clsShared.cFile.EraseFile(file + ".bak");
							num2 = 12;
							FileSystem.Rename(file, file + ".bak");
							num2 = 13;
							clsShared.cLang.TransMsgBox("READ THIS CAREFULLY!@1@Your yWriter 3 project has been converted to yWriter 5. Your old project file has been renamed to @2@.bak@1@If you want to revert to yWriter 3, make a copy of the entire project folder and rename @2@.bak to @2@", MsgBoxStyle.OkOnly, "", "\r\n", clsShared.cFile.FileOnly(file));
						}
					}
					num2 = 14;
					UpdateRecent();
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_01ba: Could not find block for branch target IL_0186*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		public void mnuImportyWriter4_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				if (SaveAndContinue("Are you sure you want to import a yWriter4 project? (If you proceed, your current project will be saved first.)"))
				{
					string file = clsShared.cFileSel.GetFile(clsShared.cSpecialFolders.MyDocsFolder, "Project.yw4", "Select the YW4 project you want to import", "*.yw4;*.ywc4");
					if (Operators.CompareString(file, "", TextCompare: false) != 0 && new clsImportYW4().ImportYW4(ref cProject, file))
					{
						CloseExternalWindows();
						SaveProject(CriticalSave: true);
					}
					UpdateRecent();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		public void mnuRemoveScene_Click(object eventSender, EventArgs eventArgs)
		{
			RemoveScene(Delete: false);
		}

		private void RemoveScene(bool Delete)
		{
			try
			{
				int num = SelectedChapterID();
				if (num != 0)
				{
					if (mvarSelectedSceneID == 0)
					{
						clsShared.cLang.TransMsgBox("Select a scene first");
					}
					else if (clsShared.cLang.TransMsgBox("Remove selected scene(s) from your project?", MsgBoxStyle.YesNo) != MsgBoxResult.No)
					{
						Collection collection = new Collection();
						IEnumerator enumerator = default(IEnumerator);
						try
						{
							enumerator = ListScenes.Items.GetEnumerator();
							while (enumerator.MoveNext())
							{
								ListViewItem listViewItem = (ListViewItem)enumerator.Current;
								if (listViewItem.Selected)
								{
									int num2 = Conversions.ToInteger(listViewItem.Tag);
									clsShared.cLog.AddAction("Removed scene " + cProject.get_SceneByID(num2).RTFFilename);
									cProject.get_SceneByID(num2);
									_ = cProject.Collab;
									cProject.get_ChapterByID(num).RemoveSceneByID(num2);
									if (!cProject.V6File && Delete)
									{
										cProject.get_SceneByID(num2).EraseSceneFileV5();
									}
									cProject.RemoveSceneByID(num2);
									collection.Add(num2);
								}
							}
						}
						finally
						{
							if (enumerator is IDisposable)
							{
								(enumerator as IDisposable).Dispose();
							}
						}
						cProject.get_ChapterByID(num).Save();
						IEnumerator enumerator2 = default(IEnumerator);
						try
						{
							enumerator2 = collection.GetEnumerator();
							while (enumerator2.MoveNext())
							{
								int num2 = Conversions.ToInteger(enumerator2.Current);
								ListScenes.Items.RemoveByKey(Conversions.ToString(num2));
							}
						}
						finally
						{
							if (enumerator2 is IDisposable)
							{
								(enumerator2 as IDisposable).Dispose();
							}
						}
						if (ListScenes.Items.Count > 0)
						{
							ListScenes.FocusedItem = ListScenes.Items[0];
							ListScenes.FocusedItem.Selected = true;
							ListScenes.FocusedItem.EnsureVisible();
							DisplaySelectedScene();
						}
						DisplayProgressive(Recalc: true);
						cProject.QuickSave();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuEditChapter_Click(object eventSender, EventArgs eventArgs)
		{
			EditSelectedChapter();
		}

		public void mnuFullSynopsis_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				clsPrintFullSynopsis clsPrintFullSynopsis = new clsPrintFullSynopsis();
				clsPrintFullSynopsis.PrintProgress += PrintProgress;
				clsPrintFullSynopsis.PrintFullSynopsis(cProject);
				clsPrintFullSynopsis.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuExportNano_Click(object eventSender, EventArgs eventArgs)
		{
			modExportToNano.ExportNano(cProject);
		}

		public void mnuImportProject_Click(object eventSender, EventArgs eventArgs)
		{
			ImportWork(V6: false);
		}

		private void ImportWork(bool V6)
		{
			try
			{
				clsImportWorkInProgress clsImportWorkInProgress = new clsImportWorkInProgress();
				if (SaveAndContinue("Importing a work in progress will save the current project and create a new one. Are you sure?"))
				{
					CloseProject();
					if (clsImportWorkInProgress.ImportWorkInProgress(ref cProject, V6))
					{
						CloseExternalWindows();
						string fontname = clsShared.cSettings.sGet("EditorFontName", "Segoe UI");
						float fontSize = clsShared.cSettings.sGet("EditorFontSize", 10f);
						SetFontAcrossAllScenes(fontname, fontSize);
						CopyFirstLineToTitles(eCopyWhat.eAll);
					}
					else
					{
						CloseProject();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuEditChar_Click(object eventSender, EventArgs eventArgs)
		{
			modEditChar.AddEditChars(ref cProject, ShowChooser: true);
		}

		public void mnuEditScene_Click(object eventSender, EventArgs eventArgs)
		{
			EditCurrentScene();
		}

		private void EditCurrentScene()
		{
			if (ListScenes.FocusedItem != null)
			{
				EditScene(ref cProject, Conversions.ToInteger(ListScenes.FocusedItem.Tag));
			}
		}

		public void mnuExportDesc_Click(object eventSender, EventArgs eventArgs)
		{
			modExportDescriptions.ExportDescriptionsByChapter(ref cProject);
		}

		public void mnuExportHTML_Click(object eventSender, EventArgs eventArgs)
		{
			new clsExportToHTML().ExportToHTML(cProject);
		}

		public void mnuExportOutline_Click(object eventSender, EventArgs eventArgs)
		{
			modExportOutline.ExportOutline(ref cProject);
		}

		public void mnuExportTimeline_Click(object eventSender, EventArgs eventArgs)
		{
			modExportTimeline.ExportTimeline(cProject);
		}

		public void mnuFileNew_Click(object eventSender, EventArgs eventArgs)
		{
			//Discarded unreachable code: IL_003f, IL_0055, IL_005f, IL_006c, IL_009e, IL_00a0, IL_00b4, IL_00d6
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				int chID = cProject.AddNewChapter();
				num2 = 3;
				cProject.QuickSave();
				num2 = 4;
				modEditChapter.EditChapter(ref cProject, chID);
				num2 = 5;
				SaveProject(CriticalSave: false);
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_00d4: Could not find block for branch target IL_00a0*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		public void mnuFind_Click(object eventSender, EventArgs eventArgs)
		{
			ShowFind();
		}

		public void mnuFindAs_Click(object eventSender, EventArgs eventArgs)
		{
			SearchLoc = 0;
			CaseSensitive = true;
			SearchString = ". As ";
			FindNext();
		}

		public void mnuFindIng_Click(object eventSender, EventArgs eventArgs)
		{
			SearchLoc = 0;
			SearchString = "ing ";
			CaseSensitive = true;
			FindNext();
		}

		public void mnuFindLooked_Click(object eventSender, EventArgs eventArgs)
		{
			SearchLoc = 0;
			SearchString = "looked";
			CaseSensitive = true;
			FindNext();
		}

		public void mnuFindLy_Click(object eventSender, EventArgs eventArgs)
		{
			SearchLoc = 0;
			SearchString = "ly ";
			CaseSensitive = true;
			FindNext();
		}

		public void mnuFindPrev_Click(object eventSender, EventArgs eventArgs)
		{
			FindPrevious();
		}

		public void mnuFindSuddenly_Click(object eventSender, EventArgs eventArgs)
		{
			SearchLoc = 0;
			SearchString = "Suddenly";
			CaseSensitive = true;
			FindNext();
		}

		public void mnuFindThen_Click(object eventSender, EventArgs eventArgs)
		{
			SearchLoc = 0;
			SearchString = " then ";
			CaseSensitive = true;
			FindNext();
		}

		public void mnuFindMuttered_Click(object eventSender, EventArgs eventArgs)
		{
			SearchLoc = 0;
			SearchString = "muttered";
			CaseSensitive = true;
			FindNext();
		}

		public void mnuFindTurned_Click(object eventSender, EventArgs eventArgs)
		{
			SearchLoc = 0;
			SearchString = " turned";
			CaseSensitive = true;
			FindNext();
		}

		public void mnuFindGlanced_Click(object eventSender, EventArgs eventArgs)
		{
			SearchLoc = 0;
			SearchString = " glanced";
			CaseSensitive = true;
			FindNext();
		}

		public void mnuFont_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				string text = ((ToolStripMenuItem)eventSender).Text;
				if (text.StartsWith("Windows Default"))
				{
					clsShared.cSettings.sSet("FormFont", modVariables.DefaultUIFont.Name);
				}
				else
				{
					clsShared.cSettings.sSet("FormFont", text);
				}
				clsShared.cFormFont.SetFormFont(this, text, clsShared.cSettings.sGet("UIFontSize", modVariables.DefaultUIFont.Size));
				clsFormFont cFormFont = clsShared.cFormFont;
				ToolStripMenuItem mnuParent = mnuUIFont;
				cFormFont.TickCurrentFont(ref mnuParent);
				mnuUIFont = mnuParent;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuGlobalReplace_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				new frmGlobalReplace(ref cProject).ShowDialog();
				DisplaySelectedScene();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuImportyWriter2_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				if (SaveAndContinue("Are you sure you want to import a yWriter2 project? (If you proceed, your current project will be saved first.)") && new clsImportYW2().ImportYW2(ref cProject))
				{
					CloseExternalWindows();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuLanguage_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				clsShared.cSubs.BusyMouse();
				int num = Conversions.ToInteger(((ToolStripMenuItem)eventSender).Tag);
				clsShared.cLang.SetLanguage(num);
				int num2 = MyProject.Application.OpenForms.Count - 1;
				for (int i = 0; i <= num2; i++)
				{
					clsShared.cLang.TranslateForm(MyProject.Application.OpenForms[i]);
				}
				TickLangMenu(num);
				clsShared.cSubs.NormalMouse();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void TickLangMenu(int Index)
		{
			try
			{
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = mnuChooseLang.DropDownItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						ToolStripMenuItem toolStripMenuItem = (ToolStripMenuItem)enumerator.Current;
						toolStripMenuItem.Checked = false;
						if (Conversions.ToInteger(toolStripMenuItem.Tag) == Index)
						{
							toolStripMenuItem.Checked = true;
							clsShared.cSettings.sSet("LangID", toolStripMenuItem.Text);
						}
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuSceneList_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				if (ExternalSceneList == null)
				{
					ExternalSceneList = new frmSceneList(ref cProject);
				}
				else
				{
					ExternalSceneList.FillList();
				}
				if (!ExternalSceneList.Visible)
				{
					ExternalSceneList.Show();
					cDelay.DoEvents();
				}
				else
				{
					ExternalSceneList.BringToFront();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuLoadProj_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				if (SaveAndContinue("Are you sure you want to load a different project? (If you proceed, your current project will be saved first.)"))
				{
					string file = clsShared.cFileSel.GetFile(clsShared.cSpecialFolders.MyDocsFolder, "My Project.yw5", "Select a yWriter project file", "*.yw5;*.ywc5;*.yw6");
					if (Operators.CompareString(file, "", TextCompare: false) != 0)
					{
						LoadProject(file, WithSplash: true);
					}
					UpdateRecent();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuManual_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				clsShared.cHelp.ShowHelp();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		public void mnuMarkChaptersUnused_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = ListChapters.SelectedItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						int num = Conversions.ToInteger(((ListViewItem)enumerator.Current).Tag);
						clsChapter clsChapter = cProject.get_ChapterByID(num);
						clsChapter.Unused = !clsChapter.Unused;
						int sceneCount = clsChapter.SceneCount;
						for (int i = 1; i <= sceneCount; i++)
						{
							clsScene clsScene = cProject.get_SceneByChID(num, i);
							clsScene.Unused = clsChapter.Unused;
							clsScene.Save();
						}
						clsChapter.Save();
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuMarkEndBeginning_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				int num = SelectedChapterID();
				if (num != 0)
				{
					cProject.EndBeginningChID = num;
					DisplayProject();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuMarkEndMiddle_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				int num = SelectedChapterID();
				if (num != 0)
				{
					cProject.EndMiddleChID = num;
					DisplayProject();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuMarkScenesUnused_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				if (mvarSelectedSceneID != 0)
				{
					IEnumerator enumerator = default(IEnumerator);
					try
					{
						enumerator = ListScenes.SelectedItems.GetEnumerator();
						while (enumerator.MoveNext())
						{
							int iD = Conversions.ToInteger(((ListViewItem)enumerator.Current).Tag);
							cProject.get_SceneByID(iD).Unused = !cProject.get_SceneByID(iD).Unused;
							cProject.get_SceneByID(iD).Save();
						}
					}
					finally
					{
						if (enumerator is IDisposable)
						{
							(enumerator as IDisposable).Dispose();
						}
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuNewProj_Click(object eventSender, EventArgs eventArgs)
		{
			NewProj(V6File: false);
		}

		private void NewProj(bool V6File)
		{
			//Discarded unreachable code: IL_002f, IL_0045, IL_004f, IL_005c, IL_008a, IL_008c, IL_00a0, IL_00c2
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (SaveAndContinue("Are you sure you want to create a new project? (If you proceed, your current project will be saved first.)"))
				{
					num2 = 3;
					cProject.CreateEmptyProject(V6File);
					num2 = 4;
					DisplayProject();
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_00c0: Could not find block for branch target IL_008c*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		public void mnuPrintChar_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				clsPrintCharList clsPrintCharList = new clsPrintCharList();
				clsPrintCharList.PrintProgress += PrintProgress;
				clsPrintCharList.PrintCharList(cProject);
				clsPrintCharList.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuPrintItemList_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				clsPrintItemList clsPrintItemList = new clsPrintItemList();
				clsPrintItemList.PrintProgress += PrintProgress;
				clsPrintItemList.PrintItemList(cProject);
				clsPrintItemList.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuPrintLocationList_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				clsPrintLocationList clsPrintLocationList = new clsPrintLocationList();
				clsPrintLocationList.PrintProgress += PrintProgress;
				clsPrintLocationList.PrintLocationList(cProject);
				clsPrintLocationList.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuPrintScene_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				clsPrintScene clsPrintScene = new clsPrintScene();
				clsPrintScene.PrintProgress += PrintProgress;
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = ListScenes.SelectedItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						int iD = Conversions.ToInteger(((ListViewItem)enumerator.Current).Tag);
						clsPrintScene.AddID(iD);
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
				if (ListScenes.SelectedItems.Count > 0)
				{
					clsPrintScene.PrintScenes(cProject, TextOnly: false);
				}
				clsPrintScene.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuPrintSummary_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				clsPrintSummary clsPrintSummary = new clsPrintSummary();
				clsPrintSummary.PrintProgress += PrintProgress;
				clsPrintSummary.PrintSummary(cProject);
				clsPrintSummary.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuPrintOnStatus_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				int onlyThisStatus = Conversions.ToInteger(((ToolStripMenuItem)eventSender).Tag);
				clsPrintWorkSchedule clsPrintWorkSchedule = new clsPrintWorkSchedule();
				clsPrintWorkSchedule.PrintProgress += PrintProgress;
				clsPrintWorkSchedule.PrintWorkSchedule(cProject, onlyThisStatus);
				clsPrintWorkSchedule.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuPrintSynopsis_Click(object eventSender, EventArgs eventArgs)
		{
			new clsPrintBriefSynopsis().PrintSynopsis(cProject);
		}

		public void mnuProjectGen_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				clsShared.cLog.WriteActionsToLog();
				if (SaveAndContinue("Are you sure you want to create a new project? (If you proceed, your current project will be saved first.)"))
				{
					clsShared.cLog.LogEvent("Running New Project Wizard");
					frmProjectWizard frmProjectWizard = new frmProjectWizard();
					frmProjectWizard.ShowDialog();
					if (!frmProjectWizard.Cancelled)
					{
						clsShared.cLog.LogEvent("Project wizard completed");
						if (CloseProject())
						{
							clsShared.cLog.LogEvent("Project closed");
							string StringToClean = frmProjectWizard.txtProjTitle.Text;
							clsShared.cFile.CleanString(ref StringToClean);
							string str = (!frmProjectWizard.optyw5.Checked) ? ".yw6" : ".yw5";
							StringToClean = Path.Combine(frmProjectWizard.txtProjectpath.Text, StringToClean + str);
							clsShared.cLog.LogEvent("Attempting to create project " + StringToClean);
							if (clsShared.cFile.FileExists(Path.Combine(clsShared.cFile.PathOnly(StringToClean), "*.yw5")) | clsShared.cFile.FileExists(Path.Combine(clsShared.cFile.PathOnly(StringToClean), "*.yw6")))
							{
								clsShared.cLog.LogEvent("User tried to re-use an existing project folder. New Project Wizard cancelled.");
								clsShared.cLang.TransMsgBox("You can't create a project in that folder - there's already one there. Please try again.");
							}
							else
							{
								cProject.AuthorName = frmProjectWizard.txtAuthor.Text;
								cProject.Title = frmProjectWizard.txtProjTitle.Text;
								cProject.FileWithPath = StringToClean;
								if (frmProjectWizard.optyw6.Checked)
								{
									cProject.V6File = true;
								}
								else
								{
									cProject.V6File = false;
								}
								if (SaveProject(CriticalSave: true))
								{
									clsShared.cLog.LogEvent("Saved new project " + StringToClean);
									clsShared.cLang.TransMsgBox("Hint: start by adding one or more chapters, then add one or more scenes.");
								}
								else
								{
									clsShared.cLog.LogEvent("Error trying to save new project " + StringToClean);
								}
							}
						}
					}
					else
					{
						clsShared.cLog.LogEvent("Project wizard cancelled");
					}
				}
				clsShared.cLog.WriteActionsToLog();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuRecent_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				if (SaveAndContinue("Are you sure you want to load a different project? (If you proceed, your current project will be saved first.)"))
				{
					string filename = Conversions.ToString(((ToolStripMenuItem)eventSender).Tag);
					LoadProject(filename, WithSplash: true);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuSaveSynopsis_Click(object eventSender, EventArgs eventArgs)
		{
			modSaveSynopsis.SaveSynopsis(cProject);
		}

		public void mnuPrintSelectedChapters_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				clsPrintChapter clsPrintChapter = new clsPrintChapter();
				clsPrintChapter.PrintProgress += PrintProgress;
				clsPrintChapter.ClearIDs();
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = ListChapters.SelectedItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						int iD = Conversions.ToInteger(((ListViewItem)enumerator.Current).Tag);
						clsPrintChapter.AddID(iD);
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
				if (ListChapters.SelectedItems.Count > 0)
				{
					bool sceneTextOnly = modPrinterSubs.AskIfSceneTextOnly();
					clsPrintChapter.PrintChapters(cProject, sceneTextOnly, "", -1);
				}
				clsPrintChapter.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuPrintProject_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				cDelay.RegularDoEvents();
				clsPrintProject clsPrintProject = new clsPrintProject();
				clsPrintProject.PrintProgress += PrintProgress;
				clsPrintProject.PrintProject(cProject);
				clsPrintProject.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuPrintSceneCards_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				clsPrintSceneIndexCards clsPrintSceneIndexCards = new clsPrintSceneIndexCards();
				clsPrintSceneIndexCards.PrintProgress += PrintProgress;
				clsPrintSceneIndexCards.PrintIndexCards(cProject, WithPreview: false);
				clsPrintSceneIndexCards.PrintProgress -= PrintProgress;
				tssPrintProgress.Text = "";
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuRemoveChapter_Click(object eventSender, EventArgs eventArgs)
		{
			RemoveSelectedChapters();
		}

		private void RemoveSelectedChapters()
		{
			try
			{
				if (SelectedChapterID() != 0 && clsShared.cLang.TransMsgBox("This will remove the selected chapter(s) and their scenes from your project. Are you sure?", MsgBoxStyle.YesNo) != MsgBoxResult.No)
				{
					IEnumerator enumerator = default(IEnumerator);
					try
					{
						enumerator = ListChapters.SelectedItems.GetEnumerator();
						while (enumerator.MoveNext())
						{
							int num = Conversions.ToInteger(((ListViewItem)enumerator.Current).Tag);
							for (int i = cProject.get_ChapterByID(num).SceneCount; i >= 1; i += -1)
							{
								int num2 = cProject.get_ChapterByID(num).get_SceneIDByIndex(i);
								if (num2 > 0)
								{
									cProject.get_SceneByID(num2);
									cProject.get_ChapterByID(num).RemoveSceneByID(num2);
									clsShared.cLog.AddAction("Removed scene " + cProject.get_SceneByID(num2).RTFFilename);
									cProject.RemoveSceneByID(num2);
								}
							}
							cProject.get_ChapterByID(num);
							clsShared.cLog.AddAction("Removed chapter " + cProject.get_ChapterByID(num).Title);
							cProject.RemoveChapterANDScenesByID(num);
						}
					}
					finally
					{
						if (enumerator is IDisposable)
						{
							(enumerator as IDisposable).Dispose();
						}
					}
					SaveProject(CriticalSave: false);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuRenumber_Click(object eventSender, EventArgs eventArgs)
		{
			//Discarded unreachable code: IL_00ea, IL_0101, IL_010c, IL_011c, IL_0166, IL_0168, IL_017c, IL_019e
			int num = default(int);
			int num4 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				int num3 = 1;
				num2 = 3;
				string translation = clsShared.cLang.GetTranslation("Chapter");
				num2 = 4;
				IEnumerator enumerator = cProject.Chapters.GetEnumerator();
				while (enumerator.MoveNext())
				{
					clsChapter clsChapter = (clsChapter)enumerator.Current;
					num2 = 5;
					if ((Strings.InStr(1, clsChapter.Title.ToLower(), translation.ToLower(), CompareMethod.Text) != 0) | (Strings.InStr(1, clsChapter.Title.ToLower(), "chapter", CompareMethod.Text) != 0))
					{
						num2 = 6;
						clsChapter.Title = translation + " " + Strings.Format(num3);
						num2 = 7;
						clsChapter.Save();
						num2 = 8;
						num3++;
					}
					num2 = 9;
				}
				num2 = 10;
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
				num2 = 11;
				SaveProject(CriticalSave: false);
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num4 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_019c: Could not find block for branch target IL_0168*/;
			}
			if (num4 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		public void mnuSaveAs_Click(object eventSender, EventArgs eventArgs)
		{
		}

		public void mnuSaveProj_Click(object eventSender, EventArgs eventArgs)
		{
			SaveProject(CriticalSave: true);
		}

		public void mnuSaveToSingleFile_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				string fileWithPath = cProject.FileWithPath;
				if (Operators.CompareString(fileWithPath, "", TextCompare: false) != 0)
				{
					cProject.FileWithPath = Path.Combine(cProject.ExportFolder(), clsShared.cFile.FileOnly(clsShared.cFile.FileWithoutExt(cProject.FileWithPath) + ".ywc5"));
					clsShared.cFile.MkMissingDir(cProject.ExportFolder());
					if (cProject.FullSaveYWCompacted5())
					{
						clsShared.cLang.TransMsgBox("File saved to @1@", MsgBoxStyle.OkOnly, "", cProject.FileWithPath);
					}
					cProject.FileWithPath = fileWithPath;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuScenesPerCharacter_Click(object eventSender, EventArgs eventArgs)
		{
			modScenesPerChar.ShowScenesPerChar(cProject);
		}

		public void mnuSetAllSceneFont_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				if (!EditorWindowsOpenWarning())
				{
					modVariables.Fonts.ShowDialog();
					if (modVariables.Fonts.Saved)
					{
						string text = modVariables.Fonts.cmbFont.Text;
						float num = Conversions.ToSingle(modVariables.Fonts.cmbFontSize.Text);
						SetFontAcrossAllScenes(text, num);
						txtBody.SelectAll();
						txtBody.Font = new Font(text, num);
						txtBody.Select(0, 0);
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuWordsPerCharacter_Click(object eventSender, EventArgs eventArgs)
		{
			modWordsPerChar.ShowWordsPerChar(cProject);
		}

		public void mnuSettings_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				if (new frmProjectSettings(ref cProject).ShowDialog() == DialogResult.OK)
				{
					SaveProject(CriticalSave: false);
					UpdateWindowTitle();
				}
				BringToFront();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuSetupAutobackup_Click(object eventSender, EventArgs eventArgs)
		{
			new frmEditorSettings().ShowDialog();
		}

		public void mnuStatus_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				int num = Conversions.ToInteger(((ToolStripMenuItem)eventSender).Tag);
				IEnumerator enumerator = default(IEnumerator);
				bool flag = default(bool);
				try
				{
					enumerator = ListScenes.SelectedItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						ListViewItem listViewItem = (ListViewItem)enumerator.Current;
						int num2 = Conversions.ToInteger(listViewItem.Tag);
						if (Locked(num2))
						{
							flag = true;
						}
						else
						{
							cProject.get_SceneByID(num2).Status = num;
							listViewItem.SubItems[3].Text = clsShared.cLang.GetTranslation(modVariables.StatusNames[num]);
						}
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
				if (flag)
				{
					clsShared.cLang.TransMsgBox("One or more scenes could not be updated, since they're being edited");
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void mnuStoryboard_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				if (Storyboard == null)
				{
					Storyboard = new frmStoryBoard(ref cProject);
				}
				Storyboard.Show();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				try
				{
					Storyboard = new frmStoryBoard(ref cProject);
					Storyboard.Show();
				}
				catch (Exception ex3)
				{
					ProjectData.SetProjectError(ex3);
					Exception ex4 = ex3;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
				ProjectData.ClearProjectError();
			}
		}

		public void mnuUDW_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				int value = Conversions.ToInteger(((ToolStripMenuItem)eventSender).Tag);
				SearchString = clsShared.cSettings.sGet("BadWord" + Conversions.ToString(value), "");
				ProblemWordReplacement = clsShared.cSettings.sGet("BadWordReplacement" + Conversions.ToString(value), "");
				CaseSensitive = true;
				SearchLoc = 0;
				FindNext();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		public void mnuWordTarget_Click(object eventSender, EventArgs eventArgs)
		{
			new frmWordTarget(ref cProject).ShowDialog();
		}

		public void mnuWordUsageCount_Click(object eventSender, EventArgs eventArgs)
		{
			modWordUsageCount.ShowWordUsageCount(cProject);
		}

		public void mnuWritingArticles_Click(object eventSender, EventArgs eventArgs)
		{
			clsShared.cWWW.VisitSpacejockComAu("Articles.html?" + App.Title);
		}

		public void mnuYWWebPage_Click(object eventSender, EventArgs eventArgs)
		{
			clsShared.cWWW.VisitSpacejockCom("yWriter5.html?" + App.Title);
		}

		private void TimerUpdate_Tick(object eventSender, EventArgs eventArgs)
		{
			//Discarded unreachable code: IL_0055, IL_006c, IL_0077, IL_0087, IL_00d1, IL_00d3, IL_00e7, IL_0109
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (!Quitting)
				{
					num2 = 4;
					if (!Editing())
					{
						num2 = 6;
						TimerUpdate.Enabled = false;
						num2 = 7;
						if (!Updater.NoAutoCheck())
						{
							num2 = 10;
							if (Updater.DoCheckNow())
							{
								num2 = 11;
								CheckForUpdate(SuppressForm: true, Beta: false);
							}
						}
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0107: Could not find block for branch target IL_00d3*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ListChapters_KeyUp(object eventSender, KeyEventArgs eventArgs)
		{
			try
			{
				if (eventArgs.KeyCode == Keys.Delete)
				{
					eventArgs.SuppressKeyPress = true;
					RemoveSelectedChapters();
				}
				else
				{
					FillSceneList();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void txtBody_DoubleClick(object eventSender, EventArgs eventArgs)
		{
			EditSelectedScene();
		}

		private void txtChapterDesc_DoubleClick(object eventSender, EventArgs eventArgs)
		{
			EditSelectedChapter();
		}

		private void txtDesc_DoubleClick(object eventSender, EventArgs eventArgs)
		{
			EditSelectedScene();
		}

		private void txtNoteEditor_LinkClicked(object sender, LinkClickedEventArgs e)
		{
			clsShared.cWWW.WebSiteVisit(e.LinkText);
		}

		private void txtNoteEditor_TextChanged(object eventSender, EventArgs eventArgs)
		{
			cmdSaveProjectNote.Enabled = true;
		}

		private void txtNoteTitle_TextChanged(object eventSender, EventArgs eventArgs)
		{
			cmdSaveProjectNote.Enabled = true;
		}

		private bool SaveProject(bool CriticalSave)
		{
			bool flag = false;
			try
			{
				cProject.LastViewedScID = DisplayedSceneID();
				flag = ((!CriticalSave) ? cProject.QuickSave() : cProject.CriticalSave());
				if (!flag)
				{
					return flag;
				}
				AddToRecent(cProject.FileWithPath);
				UpdateRecent();
				UpdateBackupButton();
				tssStatus.Text = cProject.FileWithPath;
				return flag;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
				return flag;
			}
		}

		private void LoadProject(string Filename, bool WithSplash)
		{
			//Discarded unreachable code: IL_0245, IL_025c, IL_0267, IL_0277, IL_0321, IL_0323, IL_0337, IL_0359
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (cProject.IsEmpty)
				{
					goto IL_0034;
				}
				num2 = 3;
				if (CloseProject())
				{
					goto IL_0034;
				}
				num2 = 4;
				Interaction.MsgBox("Project load cancelled. You must close the existing project first.");
				goto end_IL_0000;
				IL_0034:
				num2 = 6;
				if (WithSplash)
				{
					num2 = 7;
					CreateProjectSplash();
				}
				num2 = 8;
				if (cProject.Load(Filename, IgnoreLock: false))
				{
					num2 = 9;
					AddToRecent(Filename);
					num2 = 10;
					tssStatus.Text = Filename;
					num2 = 11;
					CloseExternalWindows();
					num2 = 12;
					TabControlMain.SelectedTab = TabChapterScenes;
					num2 = 13;
					ListChapters.FocusedItem = null;
					num2 = 14;
					DisplayProject();
					num2 = 15;
					if (cProject.LastViewedScID != 0)
					{
						num2 = 16;
						if (cProject.Scenes.IDUsed(cProject.LastViewedScID))
						{
							num2 = 17;
							DisplaySpecificScene(cProject.LastViewedScID);
						}
					}
					num2 = 18;
					if (clsShared.cSettings.sGet("AlwaysFullBackup", DefaultIfUnknown: true))
					{
						num2 = 19;
						DailyBackupToolStripMenuItem.Checked = true;
						num2 = 20;
						if (DateTime.Compare(cProject.LastFullBackup.Date, DateAndTime.Now.Date.AddDays(-1.0)) <= 0)
						{
							num2 = 21;
							cProject.BackupProject(WithSceneContent: true);
							num2 = 23;
							cProject.BackupProjectToAltfolder(WithSceneContent: true);
						}
					}
					else
					{
						num2 = 25;
						DailyBackupToolStripMenuItem.Checked = false;
						num2 = 26;
						if (DateTime.Compare(cProject.LastFullBackup.Date, DateAndTime.Now.Date.AddDays(-7.0)) <= 0)
						{
							num2 = 27;
							tssBackupButton.Visible = true;
							num2 = 28;
							tssBackupButton.ForeColor = Color.Red;
						}
						else
						{
							num2 = 30;
							if (DateTime.Compare(cProject.LastFullBackup.Date, DateAndTime.Now.Date.AddDays(-4.0)) <= 0)
							{
								num2 = 31;
								tssBackupButton.Visible = true;
							}
							else
							{
								num2 = 33;
								tssBackupButton.Visible = false;
							}
						}
					}
				}
				num2 = 35;
				HideProjectSplash();
				end_IL_0000:;
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0357: Could not find block for branch target IL_0323*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		[MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
		private void EndProgram()
		{
			//Discarded unreachable code: IL_039b, IL_03b2, IL_03bd, IL_03cd, IL_0487, IL_0489, IL_049d, IL_04bf
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				CloseExternalWindows();
				num2 = 3;
				Quitting = true;
				num2 = 4;
				clsShared.cLog.AddAction("Saving settings");
				num2 = 5;
				clsShared.cSettings.sSet("Splitter1", SplitContainer1.Width);
				num2 = 6;
				clsShared.cSettings.sSet("TabSceneHeight", TabControlScene.Height);
				num2 = 7;
				clsShared.cSettings.sSet("NoteEditorHeight", txtNoteEditor.Height);
				num2 = 8;
				clsShared.cSettings.sSet("CharDescHeight", txtCharDesc.Height);
				num2 = 9;
				clsShared.cSettings.sSet("ChapterDescHeight", txtChapterDesc.Height);
				num2 = 10;
				clsShared.cSettings.StoreWindowSettings("Main", this);
				num2 = 11;
				clsSettings cSettings = clsShared.cSettings;
				ListView List = ListChapters;
				cSettings.StoreColumnSettings("MainChap", ref List);
				ListChapters = List;
				num2 = 12;
				clsSettings cSettings2 = clsShared.cSettings;
				List = ListScenes;
				cSettings2.StoreColumnSettings("MainScn", ref List);
				ListScenes = List;
				num2 = 13;
				clsSettings cSettings3 = clsShared.cSettings;
				List = ListProjectCharacters;
				cSettings3.StoreColumnSettings("MainProjChar", ref List);
				ListProjectCharacters = List;
				num2 = 14;
				clsSettings cSettings4 = clsShared.cSettings;
				List = ListProjectItems;
				cSettings4.StoreColumnSettings("MainProjItem", ref List);
				ListProjectItems = List;
				num2 = 15;
				clsSettings cSettings5 = clsShared.cSettings;
				List = ListProjectLocations;
				cSettings5.StoreColumnSettings("MainProjLoc", ref List);
				ListProjectLocations = List;
				num2 = 16;
				clsSettings cSettings6 = clsShared.cSettings;
				List = ListCharUsed;
				cSettings6.StoreColumnSettings("MainCharUsed", ref List);
				ListCharUsed = List;
				num2 = 17;
				clsSettings cSettings7 = clsShared.cSettings;
				List = ListCharAll;
				cSettings7.StoreColumnSettings("MainCharAll", ref List);
				ListCharAll = List;
				num2 = 18;
				clsSettings cSettings8 = clsShared.cSettings;
				List = ListItemsUsed;
				cSettings8.StoreColumnSettings("MainItemsUsed", ref List);
				ListItemsUsed = List;
				num2 = 19;
				clsSettings cSettings9 = clsShared.cSettings;
				List = ListItemsAll;
				cSettings9.StoreColumnSettings("MainItemsAll", ref List);
				ListItemsAll = List;
				num2 = 20;
				clsSettings cSettings10 = clsShared.cSettings;
				List = ListLocUsed;
				cSettings10.StoreColumnSettings("MainLocUsed", ref List);
				ListLocUsed = List;
				num2 = 21;
				clsSettings cSettings11 = clsShared.cSettings;
				List = ListLocAll;
				cSettings11.StoreColumnSettings("MainLocAll", ref List);
				ListLocAll = List;
				num2 = 22;
				Hide();
				num2 = 23;
				cDelay.DoEvents();
				num2 = 24;
				if (!cProject.IsEmpty)
				{
					num2 = 25;
					SaveProject(CriticalSave: true);
					num2 = 26;
					cProject.UnlockProject(cProject.FileWithPath);
				}
				else
				{
					num2 = 28;
					clsShared.cSettings.DeleteSettingByName("LastProjectFile");
				}
				num2 = 29;
				RemoveProjectHandlers();
				num2 = 30;
				clsShared.cSettings.SaveSettings(modConstants.SETTINGS_FILE);
				num2 = 31;
				cProject = null;
				num2 = 32;
				if (Operators.CompareString(RunOnExit, "", TextCompare: false) != 0)
				{
					num2 = 33;
					clsShared.cLog.AddAction("Running " + RunOnExit);
				}
				num2 = 34;
				clsShared.cLog.AddAction("Closed down " + App.Title);
				num2 = 35;
				clsShared.cLog.WriteActionsToLog();
				num2 = 36;
				if (Operators.CompareString(RunOnExit, "", TextCompare: false) != 0)
				{
					num2 = 37;
					cDelay.Delay(1f);
					num2 = 38;
					clsShared.cFile.RunFile(RunOnExit);
					num2 = 39;
					cDelay.Delay(1f);
				}
				ProjectData.EndApp();
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_04bd: Could not find block for branch target IL_0489*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ErrorExit(string Reason)
		{
			clsShared.cLang.TransMsgBox(Reason);
			EndProgram();
		}

		private void FillNoteList()
		{
			try
			{
				SuppressUpdate = true;
				ListNotes.Items.Clear();
				txtNoteEditor.Text = "";
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = cProject.Notes.GetEnumerator();
					while (enumerator.MoveNext())
					{
						clsNote clsNote = (clsNote)enumerator.Current;
						ListViewItem listViewItem = ListNotes.Items.Add(clsNote.Title);
						listViewItem.Tag = Conversions.ToString(clsNote.ID);
						listViewItem.Name = Conversions.ToString(clsNote.ID);
						listViewItem.Selected = false;
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
				SuppressUpdate = false;
				if (ListNotes.Items.Count > 0)
				{
					ListNotes.FocusedItem = ListNotes.TopItem;
				}
				DisplaySelectedNote();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void FillSceneList(int SetToScID = 0)
		{
			//Discarded unreachable code: IL_01c1, IL_01d8, IL_01e3, IL_01f3, IL_0291, IL_0293, IL_02a7, IL_02c9
			int num = default(int);
			int num5 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				int num3 = SelectedChapterID();
				num2 = 3;
				if (SetToScID == 0)
				{
					num2 = 4;
					SetToScID = DisplayedSceneID();
				}
				num2 = 5;
				if (num3 == 0)
				{
					num2 = 6;
					ToolTip1.SetToolTip(ListScenes, "Use the Scene menu to add a scene.\r\nIf the menu is greyed out, add one or more chapters to your project first.");
				}
				else
				{
					num2 = 9;
					ToolTip1.SetToolTip(ListScenes, "");
					num2 = 10;
					ListScenes.Items.Clear();
					num2 = 11;
					clsChapter clsChapter = cProject.get_ChapterByID(num3);
					num2 = 12;
					int sceneCount = clsChapter.SceneCount;
					for (int i = 1; i <= sceneCount; i++)
					{
						num2 = 13;
						int num4 = clsChapter.get_SceneIDByIndex(i);
						num2 = 14;
						cProject.get_SceneByID(num4);
						num2 = 15;
						ListViewItem oItem = ListScenes.Items.Add(Conversions.ToString(num4), "Dummy", "");
						num2 = 16;
						UpdateListItemFromScene(ref oItem, num4);
						num2 = 17;
						oItem.Selected = false;
						num2 = 18;
					}
					num2 = 19;
					if (ListScenes.Items.Count > 0)
					{
						num2 = 20;
						string key = Conversions.ToString(SetToScID);
						num2 = 21;
						ListViewItem listViewItem;
						if (ListScenes.Items.ContainsKey(key))
						{
							num2 = 22;
							listViewItem = ListScenes.Items[key];
							num2 = 23;
							mvarSelectedSceneID = SetToScID;
						}
						else
						{
							num2 = 25;
							listViewItem = ListScenes.Items[0];
							num2 = 26;
							mvarSelectedSceneID = Conversions.ToInteger(listViewItem.Tag);
						}
						num2 = 27;
						listViewItem.Selected = true;
						num2 = 28;
						ListScenes.FocusedItem = listViewItem;
						num2 = 29;
						listViewItem.EnsureVisible();
						num2 = 30;
						DisplaySelectedScene();
					}
					else
					{
						num2 = 32;
						ClearSceneDetails(ClearBodyToo: true);
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num5 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_02c7: Could not find block for branch target IL_0293*/;
			}
			if (num5 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void DisplaySelectedScene()
		{
			int num = mvarSelectedSceneID;
			if (num <= 0)
			{
				ClearSceneDetails(ClearBodyToo: true);
				return;
			}
			clsScene clsScene = cProject.get_SceneByID(num);
			ClearSceneDetails(ClearBodyToo: false);
			mvarDisplayedSceneID = num;
			TabControlMain.SuspendLayout();
			try
			{
				txtSceneTitle.Text = clsScene.Title;
				txtSceneTitle.Tag = clsScene.Title;
				txtDesc.Text = clsScene.DescText;
				txtDesc.Select(0, 0);
				txtSceneNotes.Text = clsScene.Notes;
				txtSceneNotes.Select(0, 0);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				clsFillList clsFillList = cFill;
				clsProject clsProject = cProject;
				ListView aList = ListCharUsed;
				clsFillList.FillCharInScene(clsProject, ref aList, num, MajorOnly: false);
				ListCharUsed = aList;
				clsFillList clsFillList2 = cFill;
				clsProject clsProject2 = cProject;
				aList = ListItemsUsed;
				clsFillList2.FillItemsInScene(clsProject2, ref aList, num);
				ListItemsUsed = aList;
				clsFillList clsFillList3 = cFill;
				clsProject clsProject3 = cProject;
				aList = ListLocUsed;
				clsFillList3.FillLocationsInScene(clsProject3, ref aList, num);
				ListLocUsed = aList;
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				FillGoals(num);
			}
			catch (Exception ex5)
			{
				ProjectData.SetProjectError(ex5);
				Exception ex6 = ex5;
				clsShared.cLog.AddAction(ex6, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			DisplayTabIcons();
			MyProject.Application.DoEvents();
			TabControlMain.ResumeLayout();
			try
			{
				bool flag = default(bool);
				if (txtBody.Rtf.Length != clsScene.TextRTF.Length)
				{
					flag = true;
				}
				if (!flag & (Operators.CompareString(txtBody.Text, clsScene.ConvertedToPlainText(), TextCompare: false) != 0))
				{
					flag = true;
				}
				if (flag)
				{
					txtBody.SuspendLayout();
					if (txtBody.BackColor != clsShared.cSettings.sGet("EditorBG5", SystemColors.Window))
					{
						txtBody.BackColor = clsShared.cSettings.sGet("EditorBG5", SystemColors.Window);
					}
					txtBody.Text = "";
					try
					{
						RTBHidden.Rtf = clsScene.TextRTF;
					}
					catch (Exception ex7)
					{
						ProjectData.SetProjectError(ex7);
						Exception ex8 = ex7;
						string familyName = clsShared.cSettings.sGet("EditorFontName", "Segoe UI");
						float emSize = clsShared.cSettings.sGet("EditorFontSize", 10f);
						RTBHidden.Font = new Font(familyName, emSize);
						RTBHidden.Text = clsScene.TextRTF;
						ProjectData.ClearProjectError();
					}
					txtBody.Rtf = RTBHidden.Rtf;
					txtBody.SelectAll();
					try
					{
						txtBody.SelectionColor = clsShared.cSettings.sGet("EditorFG5", SystemColors.WindowText);
					}
					catch (Exception ex9)
					{
						ProjectData.SetProjectError(ex9);
						Exception ex10 = ex9;
						clsShared.cLog.AddAction(ex10, MethodBase.GetCurrentMethod());
						ProjectData.ClearProjectError();
					}
					txtBody.Select(0, 0);
					txtBody.ResumeLayout();
					MyProject.Application.DoEvents();
				}
			}
			catch (Exception ex11)
			{
				ProjectData.SetProjectError(ex11);
				Exception ex12 = ex11;
				clsShared.cLog.AddAction(ex12, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			if (!colEditors.Contains(Conversions.ToString(num)))
			{
				EnableMainScreenSceneEdits();
			}
		}

		private void FillGoals(int ScID)
		{
			try
			{
				clsScene clsScene = cProject.get_SceneByID(ScID);
				txtGoal.Text = clsScene.Goal;
				txtGoal.Tag = clsScene.Goal;
				txtOutcome.Text = clsScene.Outcome;
				txtOutcome.Tag = clsScene.Outcome;
				txtConflict.Text = clsScene.Conflict;
				txtConflict.Tag = clsScene.Conflict;
				if (clsScene.ReactionScene)
				{
					lblGoal.Text = clsShared.cLang.GetTranslation("Reaction");
					lblConflict.Text = clsShared.cLang.GetTranslation("Dilemma");
					lblOutcome.Text = clsShared.cLang.GetTranslation("Decision");
				}
				else
				{
					lblGoal.Text = clsShared.cLang.GetTranslation("Goal");
					lblConflict.Text = clsShared.cLang.GetTranslation("Conflict");
					lblOutcome.Text = clsShared.cLang.GetTranslation("Outcome");
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void CheckForUpdate(bool SuppressForm, bool Beta)
		{
			string updateURL = clsShared.cWWW.GenVersionLink("yWriter6", Beta);
			string detailsURL = clsShared.cWWW.GenDetailsLink("yWriter6", Beta);
			string updateFilename = (!Beta) ? "yWriter6Upd.exe" : "yWriter6BetaUpd.exe";
			Updater.CheckForUpdate(SuppressForm, updateURL, detailsURL, updateFilename, modVariables.DATAPATH, MyProject.Application.Info.Version.ToString(), MyProject.Application.Info.ProductName);
		}

		private void Updater_NewVersionAvailable(string VersionString)
		{
			tssStatus.Text = VersionString + " is available. Click here for details.";
		}

		public void Updater_Finished()
		{
			clsShared.cLog.LogEvent("Updater has finished.");
		}

		public void Updater_Status(string Message)
		{
			tssStatus.Text = Message;
		}

		public void Updater_InstallFile(string SaveToFolder, string UpdateFilename)
		{
			RunOnExit = Path.Combine(SaveToFolder, UpdateFilename);
		}

		private void DisplaySearchResult()
		{
			try
			{
				if (TabControlScene.SelectedIndex != 0)
				{
					TabControlScene.SelectedIndex = 0;
				}
				if (UseRegex)
				{
					txtBody.Select(SearchLoc - 1, Strings.Len(SearchRegexFound));
				}
				else
				{
					txtBody.Select(SearchLoc - 1, Strings.Len(SearchString));
				}
				txtBody.Focus();
				cDelay.DoEvents();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void LoadUDW()
		{
			try
			{
				string text = "";
				mnuUD.DropDownItems.Clear();
				ToolStripMenuItem toolStripMenuItem = new ToolStripMenuItem();
				toolStripMenuItem.Text = "Edit problem words";
				toolStripMenuItem.Tag = "0";
				mnuUD.DropDownItems.Add(toolStripMenuItem);
				toolStripMenuItem.Click += mnuUDWSetup_Click;
				int num = 1;
				do
				{
					text = clsShared.cSettings.sGet("BadWord" + Conversions.ToString(num), "");
					if (Operators.CompareString(text, "", TextCompare: false) != 0)
					{
						toolStripMenuItem = new ToolStripMenuItem();
						toolStripMenuItem.Text = "Search for '" + text + "'";
						toolStripMenuItem.Tag = num;
						mnuUD.DropDownItems.Add(toolStripMenuItem);
						toolStripMenuItem.Click += mnuUDW_Click;
					}
					num++;
				}
				while (num <= 30);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void mnuUDWSetup_Click(object eventSender, EventArgs eventArgs)
		{
			new frmProblemWords().ShowDialog();
			LoadUDW();
		}

		private void AddToRecent(string Filename)
		{
			try
			{
				string text = "";
				string text2 = "";
				Collection collection = new Collection();
				int num = 0;
				do
				{
					text2 = clsShared.cSettings.sGet("Recent" + Conversions.ToString(num), "");
					clsShared.cSettings.DeleteSettingByName("Recent" + Conversions.ToString(num));
					if (Operators.CompareString(text2, "", TextCompare: false) != 0)
					{
						int count = collection.Count;
						for (int i = 1; i <= count; i++)
						{
							text = Conversions.ToString(collection[i]);
							if (Operators.CompareString(text, text2, TextCompare: false) == 0)
							{
								text2 = "";
								break;
							}
						}
						if (Operators.CompareString(text2, "", TextCompare: false) != 0)
						{
							collection.Add(text2);
						}
					}
					num++;
				}
				while (num <= 36);
				if (collection.Count == 0)
				{
					collection.Add(Filename);
				}
				else
				{
					for (int i = collection.Count; i >= 1; i += -1)
					{
						text = Conversions.ToString(collection[i]);
						if (Operators.CompareString(text, Filename, TextCompare: false) == 0)
						{
							collection.Remove(i);
						}
					}
					collection.Add(Filename, null, 1);
				}
				int count2 = collection.Count;
				for (num = 1; num <= count2; num++)
				{
					text = Conversions.ToString(collection[num]);
					if (Operators.CompareString(text, "", TextCompare: false) != 0)
					{
						clsShared.cSettings.sSet("Recent" + Conversions.ToString(num - 1), text);
					}
				}
				UpdateRecent();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void UpdateRecent()
		{
			//Discarded unreachable code: IL_01ac, IL_01c3, IL_01ce, IL_01de, IL_025c, IL_025e, IL_0272, IL_0294
			int num2 = default(int);
			int num5 = default(int);
			try
			{
				int num = 1;
				string text = "";
				ProjectData.ClearProjectError();
				num2 = 2;
				num = 3;
				mnuOpenRecent.DropDownItems.Clear();
				num = 4;
				int num3 = 0;
				int num4 = default(int);
				do
				{
					num = 5;
					text = clsShared.cSettings.sGet("Recent" + Conversions.ToString(num3), "");
					num = 6;
					bool flag = true;
					num = 7;
					if (Operators.CompareString(text, "", TextCompare: false) == 0)
					{
						num = 8;
						flag = false;
					}
					num = 9;
					if ((Operators.CompareString(clsShared.cFile.ExtOnly(text).ToLower(), "yw5", TextCompare: false) != 0) & (Operators.CompareString(clsShared.cFile.ExtOnly(text).ToLower(), "ywc5", TextCompare: false) != 0) & (Operators.CompareString(clsShared.cFile.ExtOnly(text).ToLower(), "yw6", TextCompare: false) != 0))
					{
						num = 10;
						flag = false;
					}
					num = 11;
					if (!clsShared.cFile.FileExists(text))
					{
						num = 12;
						flag = false;
					}
					num = 13;
					if (flag)
					{
						num = 14;
						ToolStripMenuItem toolStripMenuItem = new ToolStripMenuItem();
						num = 15;
						toolStripMenuItem.Tag = text;
						num = 16;
						toolStripMenuItem.Text = Path.Combine(clsShared.cFile.LastFolder(clsShared.cFile.PathOnly(text)), clsShared.cFile.FileOnly(text));
						num = 17;
						mnuOpenRecent.DropDownItems.Add(toolStripMenuItem);
						num = 18;
						toolStripMenuItem.Click += mnuRecent_Click;
						num = 19;
						num4++;
					}
					else
					{
						num = 21;
						clsShared.cSettings.DeleteSettingByName("Recent" + Conversions.ToString(num3));
					}
					num = 22;
					num3++;
				}
				while (num3 <= 12);
				num = 23;
				if (!Editing())
				{
					num = 24;
					BringToFront();
				}
			}
			catch (Exception obj) when ((obj is Exception && num2 != 0) & (num5 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0292: Could not find block for branch target IL_025e*/;
			}
			if (num5 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private bool Editing()
		{
			try
			{
				if (colEditors.Count > 0)
				{
					return true;
				}
				return false;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				bool result = false;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
				return result;
			}
		}

		private int SelectedCharID(int Index)
		{
			int result = 0;
			try
			{
				ListView listView = (Index != 0) ? ListCharAll : ListCharUsed;
				if (listView.FocusedItem != null)
				{
					result = Conversions.ToInteger(listView.FocusedItem.Tag);
					return result;
				}
				return result;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
				return result;
			}
		}

		private int SelectedChapterID()
		{
			int result = -1;
			try
			{
				if (ListChapters.FocusedItem != null)
				{
					result = Conversions.ToInteger(ListChapters.FocusedItem.Tag);
					return result;
				}
				return result;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
				return result;
			}
		}

		private bool SelectChapter(int ChID)
		{
			bool result = false;
			if (ListChapters.Items.Count != 0)
			{
				try
				{
					ListViewItem listViewItem = (!ListChapters.Items.ContainsKey(Conversions.ToString(ChID))) ? ListChapters.Items[0] : ListChapters.Items[Conversions.ToString(ChID)];
					ListChapters.FocusedItem = listViewItem;
					listViewItem.EnsureVisible();
					listViewItem.Selected = true;
					result = true;
					return result;
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
					return result;
				}
			}
			return result;
		}

		private bool SelectScene(int ScID)
		{
			bool result = false;
			if (ListScenes.Items.Count != 0)
			{
				try
				{
					IEnumerator enumerator = default(IEnumerator);
					ListViewItem listViewItem;
					try
					{
						enumerator = ListScenes.SelectedItems.GetEnumerator();
						while (enumerator.MoveNext())
						{
							listViewItem = (ListViewItem)enumerator.Current;
							listViewItem.Selected = false;
						}
					}
					finally
					{
						if (enumerator is IDisposable)
						{
							(enumerator as IDisposable).Dispose();
						}
					}
					listViewItem = ((!ListScenes.Items.ContainsKey(Conversions.ToString(ScID))) ? ListScenes.Items[0] : ListScenes.Items[Conversions.ToString(ScID)]);
					ListScenes.FocusedItem = listViewItem;
					listViewItem.Selected = true;
					result = true;
					DisplaySelectedScene();
					return result;
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					ClearSceneDetails(ClearBodyToo: true);
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
					return result;
				}
			}
			return result;
		}

		private void EditSelectedChapter()
		{
			try
			{
				int num = SelectedChapterID();
				if (num != 0 && modEditChapter.EditChapter(ref cProject, num))
				{
					SuppressUpdate = true;
					FillBookList();
					SuppressUpdate = false;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private bool UpdateListItemFromScene(ref ListViewItem oItem, int ScID)
		{
			bool result = true;
			clsScene clsScene = cProject.get_SceneByID(ScID);
			clsCharacter clsCharacter = cProject.get_CharByID(clsScene.ViewPointID);
			try
			{
				while (oItem.SubItems.Count < ListScenes.Columns.Count)
				{
					oItem.SubItems.Add("");
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				result = false;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				oItem.Text = clsCharacter.Title;
				oItem.SubItems[1].Text = Conversions.ToString(clsScene.Wordcount);
				oItem.SubItems[2].Text = clsScene.Title;
				oItem.SubItems[3].Text = clsShared.cLang.GetTranslation(modVariables.StatusNames[clsScene.Status]);
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				result = false;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				if (clsScene.ReactionScene)
				{
					oItem.SubItems[4].Text = "R";
				}
				else
				{
					oItem.SubItems[4].Text = "A";
				}
				oItem.SubItems[5].Text = clsScene.RTFFilename;
			}
			catch (Exception ex5)
			{
				ProjectData.SetProjectError(ex5);
				Exception ex6 = ex5;
				result = false;
				clsShared.cLog.AddAction(ex6, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				if (clsScene.Unused)
				{
					if (clsScene.Locked)
					{
						oItem.ImageKey = "edit";
					}
					else
					{
						oItem.ImageKey = "yw_Unused_16.png";
						oItem.ForeColor = SystemColors.GrayText;
					}
				}
				else
				{
					oItem.ForeColor = SystemColors.WindowText;
					if (clsScene.Locked)
					{
						oItem.ImageKey = "edit";
					}
					else if (clsScene.HasNote())
					{
						oItem.ImageKey = "yw_Note_16_ico.ico";
					}
					else
					{
						oItem.ImageKey = "yw_Scene_16_ico.ico";
					}
				}
			}
			catch (Exception ex7)
			{
				ProjectData.SetProjectError(ex7);
				Exception ex8 = ex7;
				result = false;
				clsShared.cLog.AddAction(ex8, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				oItem.SubItems[6].Text = Conversions.ToString(clsScene.Lettercount);
				oItem.SubItems[7].Text = cProject.CharacterList(ScID, ", ");
				oItem.SubItems[8].Text = cProject.LocationList(ScID, ", ");
				oItem.SubItems[9].Text = cProject.ItemList(ScID, ", ");
				if (clsScene.SpecificDateMode)
				{
					oItem.SubItems[10].Text = Conversions.ToString(clsScene.SpecificDateTime);
				}
				else
				{
					oItem.SubItems[10].Text = "D:" + Conversions.ToString(clsScene.Day_Renamed) + " H:" + Conversions.ToString(clsScene.Hour_Renamed) + " M:" + Conversions.ToString(clsScene.Minute_Renamed);
				}
				oItem.SubItems[11].Text = Conversions.ToString(clsScene.Lastupdated);
			}
			catch (Exception ex9)
			{
				ProjectData.SetProjectError(ex9);
				Exception ex10 = ex9;
				result = false;
				clsShared.cLog.AddAction(ex10, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				oItem.Tag = Conversions.ToString(ScID);
				return result;
			}
			catch (Exception ex11)
			{
				ProjectData.SetProjectError(ex11);
				Exception ex12 = ex11;
				result = false;
				clsShared.cLog.AddAction(ex12, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
				return result;
			}
		}

		private void UpdateListItemFromChapter(ref ListViewItem oItem, int ChID)
		{
			try
			{
				clsChapter clsChapter = cProject.get_ChapterByID(ChID);
				string text = "";
				while (oItem.SubItems.Count < ListChapters.Columns.Count)
				{
					oItem.SubItems.Add("");
				}
				int value = cProject.get_ChapterWordcount(ChID, WithUnused: false);
				if (Operators.CompareString(oItem.SubItems[1].Text, Conversions.ToString(value), TextCompare: false) != 0)
				{
					oItem.SubItems[1].Text = Conversions.ToString(value);
				}
				int sceneCount = clsChapter.SceneCount;
				if (Operators.CompareString(oItem.SubItems[2].Text, Conversions.ToString(sceneCount), TextCompare: false) != 0)
				{
					oItem.SubItems[2].Text = Conversions.ToString(sceneCount);
				}
				int progressiveCount = clsChapter.ProgressiveCount;
				if (Operators.CompareString(oItem.SubItems[3].Text, Conversions.ToString(progressiveCount), TextCompare: false) != 0)
				{
					oItem.SubItems[3].Text = Conversions.ToString(progressiveCount);
				}
				if (Operators.CompareString(oItem.Text, clsChapter.Title, TextCompare: false) != 0)
				{
					oItem.Text = clsChapter.Title;
				}
				oItem.Tag = Conversions.ToString(ChID);
				if (clsChapter.Unused)
				{
					if (Operators.CompareString(oItem.ImageKey, "yw_Unused_16.png", TextCompare: false) != 0)
					{
						oItem.ImageKey = "yw_Unused_16.png";
					}
					if (oItem.ForeColor != cColours.GreyInk)
					{
						oItem.ForeColor = cColours.GreyInk;
					}
				}
				else if (clsChapter.Type == ChapterTypes.ChapterNormal)
				{
					if (Operators.CompareString(oItem.ImageKey, "yw_Chapter_16_ico.ico", TextCompare: false) != 0)
					{
						oItem.ImageKey = "yw_Chapter_16_ico.ico";
					}
					if (oItem.ForeColor != cColours.DarkGreenInk)
					{
						oItem.ForeColor = cColours.DarkGreenInk;
					}
				}
				else
				{
					if (Operators.CompareString(oItem.ImageKey, "ywChapterOther_16.png", TextCompare: false) != 0)
					{
						oItem.ImageKey = "ywChapterOther_16.png";
					}
					if (oItem.ForeColor != cColours.BlueInk)
					{
						oItem.ForeColor = cColours.BlueInk;
					}
				}
				text = clsShared.cText.CRLFToSpaces(clsChapter.DescText);
				text = clsShared.cText.RemoveDblSpaces(text);
				if (text.Length > 60)
				{
					text = text.Substring(0, 60) + " ...";
				}
				if (Operators.CompareString(oItem.SubItems[4].Text, text, TextCompare: false) != 0)
				{
					oItem.SubItems[4].Text = text;
				}
				if (clsChapter.SectionStart)
				{
					if (!oItem.Font.Bold)
					{
						oItem.Font = new Font(oItem.Font, FontStyle.Bold);
					}
				}
				else if (oItem.Font.Bold)
				{
					oItem.Font = new Font(oItem.Font, FontStyle.Regular);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void AddCharToSelectedScene()
		{
			try
			{
				int num = mvarSelectedSceneID;
				if (num == 0)
				{
					clsShared.cLang.TransMsgBox("Select a scene first");
				}
				else
				{
					frmList frmList = new frmList(ref cProject, eRecord.eCharacter);
					frmList.ShowDialog();
					if (!frmList.Cancelled)
					{
						int num2 = frmList.ListItems.SelectedItems.Count - 1;
						for (int i = 0; i <= num2; i++)
						{
							int num3 = Conversions.ToInteger(frmList.ListItems.SelectedItems[i].Tag);
							if (cProject.get_SceneByID(num).ViewPointID <= 0)
							{
								cProject.get_SceneByID(num).SetViewpointByID(num3);
								ListView listScenes;
								ListViewItem oItem = (listScenes = ListScenes).FocusedItem;
								bool num4 = UpdateListItemFromScene(ref oItem, num);
								listScenes.FocusedItem = oItem;
								if (!num4)
								{
								}
							}
							else if (num3 != cProject.get_SceneByID(num).ViewPointID)
							{
								cProject.get_SceneByID(num).AddCharByID(num3);
							}
						}
					}
					frmList = null;
					DisplaySelectedScene();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void AddLocationToSelectedScene()
		{
			try
			{
				int num = mvarSelectedSceneID;
				if (num == 0)
				{
					clsShared.cLang.TransMsgBox("Select a scene first");
				}
				else
				{
					frmList frmList = new frmList(ref cProject, eRecord.eLocation);
					frmList.ShowDialog();
					if (!frmList.Cancelled)
					{
						int num2 = frmList.ListItems.SelectedItems.Count - 1;
						for (int i = 0; i <= num2; i++)
						{
							int iD = Conversions.ToInteger(frmList.ListItems.SelectedItems[i].Tag);
							cProject.get_SceneByID(num).AddLocationByID(iD);
						}
					}
					frmList = null;
					DisplaySelectedScene();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void AddItemToSelectedScene()
		{
			try
			{
				int num = mvarSelectedSceneID;
				if (num == 0)
				{
					clsShared.cLang.TransMsgBox("Select a scene first");
				}
				else
				{
					frmList frmList = new frmList(ref cProject, eRecord.eItem);
					frmList.ShowDialog();
					if (!frmList.Cancelled)
					{
						int num2 = frmList.ListItems.SelectedItems.Count - 1;
						for (int i = 0; i <= num2; i++)
						{
							int iD = Conversions.ToInteger(frmList.ListItems.SelectedItems[i].Tag);
							cProject.get_SceneByID(num).AddItemByID(iD);
						}
					}
					frmList = null;
					DisplaySelectedScene();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private bool Locked(int ScID)
		{
			bool result = false;
			try
			{
				result = cProject.get_SceneByID(ScID).Locked;
				return result;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
				return result;
			}
		}

		private void Find_DoFind(string NewSearchString, bool IsCaseSensitive)
		{
			//Discarded unreachable code: IL_005b, IL_0072, IL_007d, IL_008a, IL_00c4, IL_00c6, IL_00da, IL_00fc
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if ((Operators.CompareString(NewSearchString, SearchString, TextCompare: false) != 0) | (IsCaseSensitive != CaseSensitive))
				{
					num2 = 3;
					txtBody.Select(0, 0);
					num2 = 4;
					ResetFind();
				}
				num2 = 5;
				SearchString = NewSearchString;
				num2 = 6;
				CaseSensitive = IsCaseSensitive;
				num2 = 7;
				FindNext();
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_00fa: Could not find block for branch target IL_00c6*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void Find_DoPrevious(string NewSearchString, bool IsCaseSensitive)
		{
			SearchString = NewSearchString;
			CaseSensitive = IsCaseSensitive;
			FindPrevious();
		}

		private void ShowFind()
		{
			ResetFind();
			try
			{
				Find.WindowState = FormWindowState.Normal;
				Find.Show();
				Find.BringToFront();
				Find.cmbFind.Focus();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				try
				{
					Find = new frmFind(ref clsShared.cLog);
					ResetFind();
					Find.Show();
					Find.BringToFront();
					Find.cmbFind.Focus();
				}
				catch (Exception ex3)
				{
					ProjectData.SetProjectError(ex3);
					Exception ex4 = ex3;
					clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
				ProjectData.ClearProjectError();
			}
		}

		private void ResetFind()
		{
			try
			{
				SearchChapterIndex = -1;
				SearchSceneIndex = -1;
				SearchLoc = 0;
				Find.ResetControls(DisableReplace: true, DisableReplaceAll: true);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				Find = new frmFind(ref clsShared.cLog);
				ProjectData.ClearProjectError();
			}
		}

		private void DisplayProgressive(bool Recalc)
		{
			//Discarded unreachable code: IL_0255, IL_026c, IL_0277, IL_0287, IL_0339, IL_033b, IL_034f, IL_0371
			int num3 = default(int);
			int num5 = default(int);
			try
			{
				int num = 1;
				if (!_0024STATIC_0024DisplayProgressive_002420112_0024AlreadyShowing)
				{
					num = 3;
					_0024STATIC_0024DisplayProgressive_002420112_0024AlreadyShowing = true;
					num = 4;
					if (Recalc)
					{
						num = 5;
						TotalWords = cProject.RecalcProgressive();
					}
					num = 6;
					tssWordcount.Text = "Total words: " + Conversions.ToString(TotalWords) + " (Added today: " + Conversions.ToString(cProject.LatestWCDiff(WithUnused: false)) + ")";
					num = 7;
					int num2 = 0;
					ProjectData.ClearProjectError();
					num3 = 2;
					num = 9;
					int endBeginningChID = cProject.EndBeginningChID;
					num = 10;
					int endMiddleChID = cProject.EndMiddleChID;
					num = 11;
					IEnumerator enumerator = ListChapters.Items.GetEnumerator();
					bool flag = default(bool);
					bool flag2 = default(bool);
					while (enumerator.MoveNext())
					{
						ListViewItem listViewItem = (ListViewItem)enumerator.Current;
						num = 12;
						num2++;
						num = 13;
						int num4 = Conversions.ToInteger(listViewItem.Tag);
						num = 14;
						clsChapter clsChapter = cProject.get_ChapterByID(num4);
						num = 15;
						if (num4 == endBeginningChID)
						{
							num = 16;
							flag = true;
						}
						else
						{
							num = 18;
							if (num4 == endMiddleChID)
							{
								num = 19;
								flag2 = true;
							}
						}
						num = 20;
						if (Conversions.ToDouble(listViewItem.SubItems[2].Text) != (double)clsChapter.SceneCount)
						{
							num = 21;
							listViewItem.SubItems[2].Text = Conversions.ToString(clsChapter.SceneCount);
						}
						num = 22;
						if (Conversions.ToDouble(listViewItem.SubItems[3].Text) != (double)clsChapter.ProgressiveCount)
						{
							num = 23;
							listViewItem.SubItems[3].Text = Conversions.ToString(clsChapter.ProgressiveCount);
						}
						num = 24;
						if (listViewItem.UseItemStyleForSubItems)
						{
							num = 25;
							listViewItem.UseItemStyleForSubItems = false;
						}
						num = 26;
						Color color;
						if (flag2)
						{
							num = 27;
							color = cColours.DarkRedInk;
						}
						else
						{
							num = 29;
							if (flag)
							{
								num = 30;
								color = cColours.OrangeInk;
							}
							else
							{
								num = 32;
								color = cColours.DarkGreenInk;
							}
						}
						num = 33;
						if (listViewItem.SubItems[3].ForeColor != color)
						{
							num = 34;
							listViewItem.SubItems[3].ForeColor = color;
						}
						num = 35;
					}
					num = 36;
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
					num = 37;
					_0024STATIC_0024DisplayProgressive_002420112_0024AlreadyShowing = false;
				}
			}
			catch (Exception obj) when ((obj is Exception && num3 != 0) & (num5 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_036f: Could not find block for branch target IL_033b*/;
			}
			if (num5 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void EditSelectedCharacter(ref ListView SelectedList)
		{
			try
			{
				int iDFromFocusedItemTag = GetIDFromFocusedItemTag(ref SelectedList);
				if (iDFromFocusedItemTag > 0)
				{
					modEditChar.EditChar(ref cProject, iDFromFocusedItemTag);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void EditSelectedItem(ref ListView SelectedList)
		{
			try
			{
				int iDFromFocusedItemTag = GetIDFromFocusedItemTag(ref SelectedList);
				if (iDFromFocusedItemTag > 0)
				{
					modEditItem.EditItem(ref cProject, iDFromFocusedItemTag);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void EditSelectedLocation(ref ListView SelectedList)
		{
			try
			{
				int iDFromFocusedItemTag = GetIDFromFocusedItemTag(ref SelectedList);
				if (iDFromFocusedItemTag > 0)
				{
					modEditLocation.EditLocation(ref cProject, iDFromFocusedItemTag);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ExternalSceneList_ClosedForm()
		{
		}

		private void ExternalSceneList_EditScene(int ScID, int WhichTab)
		{
			EditScene(ref cProject, ScID, WhichTab);
		}

		private void ExternalSceneList_MovedScenes()
		{
		}

		public void mnuRemoveLocation_Click(object eventSender, EventArgs eventArgs)
		{
			try
			{
				if (ListLocUsed.FocusedItem != null)
				{
					int num = mvarSelectedSceneID;
					if (num > 0)
					{
						cProject.get_SceneByID(num).RemoveLocationByID(Conversions.ToInteger(ListLocUsed.FocusedItem.Tag));
						DisplaySelectedScene();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void DisplayChapterDesc(int ChID)
		{
			try
			{
				txtChapterDesc.Text = "[" + Conversions.ToString(ChID) + "] " + cProject.get_ChapterByID(ChID).Title + " description: \r\n" + cProject.get_ChapterByID(ChID).DescText;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ResetDraggingWhat()
		{
			DraggingChapter = false;
			DraggingChar = false;
			DraggingScene = false;
			DraggingItems = false;
			DraggingLoc = false;
		}

		private void ShowAllEditorWindows()
		{
			try
			{
				ShowAllSceneEditors();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void SetupNoteForEdit()
		{
			//Discarded unreachable code: IL_00b3, IL_00ca, IL_00d5, IL_00e5, IL_012f, IL_0131, IL_0145, IL_0167
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				tabProjectNotes.Text = clsShared.cLang.GetTranslation("Project Notes", " *");
				num2 = 3;
				txtNoteEditor.ReadOnly = false;
				num2 = 4;
				txtNoteTitle.ReadOnly = false;
				num2 = 5;
				NewNoteToolStripMenuItem.Enabled = false;
				num2 = 6;
				txtNoteEditor.BackColor = SystemColors.Window;
				num2 = 7;
				txtNoteTitle.BackColor = SystemColors.Window;
				num2 = 8;
				cmdNewProjectNote.Enabled = false;
				num2 = 9;
				cmdSaveProjectNote.Enabled = true;
				num2 = 10;
				cmdDiscardProjectNote.Enabled = true;
				num2 = 11;
				ListNotes.Enabled = false;
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0165: Could not find block for branch target IL_0131*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void SetupNoteForNew()
		{
			//Discarded unreachable code: IL_0124, IL_013b, IL_0146, IL_0156, IL_01bc, IL_01be, IL_01d2, IL_01f4
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				tabProjectNotes.Text = clsShared.cLang.GetTranslation("Project Notes", " *");
				num2 = 3;
				txtNoteEditor.Text = "";
				num2 = 4;
				txtNoteEditor.Tag = "";
				num2 = 5;
				txtNoteTitle.Text = "New Note";
				num2 = 6;
				txtNoteEditor.ReadOnly = false;
				num2 = 7;
				txtNoteTitle.ReadOnly = false;
				num2 = 8;
				NewNoteToolStripMenuItem.Enabled = false;
				num2 = 9;
				cmdNewProjectNote.Enabled = false;
				num2 = 10;
				txtNoteEditor.BackColor = SystemColors.Window;
				num2 = 11;
				txtNoteTitle.BackColor = SystemColors.Window;
				num2 = 12;
				cmdEditProjectNote.Enabled = false;
				num2 = 13;
				ListNotes.Enabled = false;
				num2 = 14;
				cmdDiscardProjectNote.Enabled = true;
				num2 = 15;
				SuppressUpdate = true;
				num2 = 16;
				if (ListNotes.FocusedItem != null)
				{
					num2 = 17;
					ListNotes.FocusedItem.Selected = false;
				}
				num2 = 18;
				SuppressUpdate = false;
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_01f2: Could not find block for branch target IL_01be*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void SetupNoteForDisplay()
		{
			//Discarded unreachable code: IL_00de, IL_00f5, IL_0100, IL_0110, IL_016a, IL_016c, IL_0180, IL_01a2
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				tabProjectNotes.Text = clsShared.cLang.GetTranslation("Project Notes");
				num2 = 3;
				NewNoteToolStripMenuItem.Enabled = true;
				num2 = 4;
				txtNoteEditor.ReadOnly = true;
				num2 = 5;
				txtNoteTitle.ReadOnly = true;
				num2 = 6;
				txtNoteEditor.BackColor = SystemColors.Control;
				num2 = 7;
				txtNoteTitle.BackColor = SystemColors.Control;
				num2 = 8;
				cmdNewProjectNote.Enabled = true;
				num2 = 9;
				cmdSaveProjectNote.Enabled = false;
				num2 = 10;
				cmdDiscardProjectNote.Enabled = false;
				num2 = 11;
				ListNotes.Enabled = true;
				num2 = 12;
				if (ListNotes.FocusedItem == null)
				{
					num2 = 13;
					cmdEditProjectNote.Enabled = false;
				}
				else
				{
					num2 = 15;
					cmdEditProjectNote.Enabled = true;
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_01a0: Could not find block for branch target IL_016c*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ctxAddToSel_Click(object sender, EventArgs e)
		{
			//Discarded unreachable code: IL_01df, IL_01f5, IL_0209, IL_022b
			int num = default(int);
			int num6 = default(int);
			try
			{
				if (ListScenes.FocusedItem != null)
				{
					ProjectData.ClearProjectError();
					num = 2;
					IEnumerator enumerator = ListScenes.SelectedItems.GetEnumerator();
					int num2 = default(int);
					while (enumerator.MoveNext())
					{
						num2 = Conversions.ToInteger(((ListViewItem)enumerator.Current).Tag);
						clsScene clsScene = cProject.get_SceneByID(num2);
						ListView listView = modSubs.WhichListClicked(RuntimeHelpers.GetObjectValue(sender));
						int num3 = listView.SelectedItems.Count - 1;
						for (int i = 0; i <= num3; i++)
						{
							int num4 = Conversions.ToInteger(listView.SelectedItems[i].Tag);
							if (listView.Equals(ListCharAll) | listView.Equals(ListCharUsed))
							{
								clsScene.AddCharByID(num4);
								if (clsScene.ViewPointID <= 0)
								{
									clsScene.SetViewpointByID(num4);
								}
							}
							else if (listView.Equals(ListItemsAll) | listView.Equals(ListItemsUsed))
							{
								clsScene.AddItemByID(num4);
							}
							else if (listView.Equals(ListLocAll) | listView.Equals(ListLocUsed))
							{
								clsScene.AddLocationByID(num4);
							}
						}
					}
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
					ListView listScenes;
					ListViewItem oItem = (listScenes = ListScenes).FocusedItem;
					bool num5 = UpdateListItemFromScene(ref oItem, num2);
					listScenes.FocusedItem = oItem;
					if (num5)
					{
						clsFillList clsFillList = cFill;
						clsProject clsProject = cProject;
						listScenes = ListCharUsed;
						clsFillList.FillCharInScene(clsProject, ref listScenes, num2, MajorOnly: false);
						ListCharUsed = listScenes;
						clsFillList clsFillList2 = cFill;
						clsProject clsProject2 = cProject;
						listScenes = ListItemsUsed;
						clsFillList2.FillItemsInScene(clsProject2, ref listScenes, num2);
						ListItemsUsed = listScenes;
						clsFillList clsFillList3 = cFill;
						clsProject clsProject3 = cProject;
						listScenes = ListLocUsed;
						clsFillList3.FillLocationsInScene(clsProject3, ref listScenes, num2);
						ListLocUsed = listScenes;
					}
					DisplaySelectedScene();
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num6 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0229: Could not find block for branch target IL_01f5*/;
			}
			if (num6 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ctxRemoveFromSel_Click(object sender, EventArgs e)
		{
			//Discarded unreachable code: IL_00f9, IL_010f, IL_0123, IL_0145
			int num = default(int);
			int num3 = default(int);
			try
			{
				if (ListScenes.FocusedItem != null)
				{
					ProjectData.ClearProjectError();
					num = 2;
					IEnumerator enumerator = ListScenes.SelectedItems.GetEnumerator();
					int num2 = default(int);
					while (enumerator.MoveNext())
					{
						num2 = Conversions.ToInteger(((ListViewItem)enumerator.Current).Tag);
						IEnumerator enumerator2 = ListCharAll.SelectedItems.GetEnumerator();
						while (enumerator2.MoveNext())
						{
							int iD = Conversions.ToInteger(((ListViewItem)enumerator2.Current).Tag);
							cProject.get_SceneByID(num2).RemoveCharByID(iD);
						}
						if (enumerator2 is IDisposable)
						{
							(enumerator2 as IDisposable).Dispose();
						}
						cProject.get_SceneByID(num2).Save();
					}
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
					clsFillList clsFillList = cFill;
					clsProject clsProject = cProject;
					ListView aList = ListCharUsed;
					clsFillList.FillCharInScene(clsProject, ref aList, num2, MajorOnly: false);
					ListCharUsed = aList;
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0143: Could not find block for branch target IL_010f*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ctxEdititem_Click(object sender, EventArgs e)
		{
			ListView SelectedList = modSubs.WhichListClicked(RuntimeHelpers.GetObjectValue(sender));
			if (SelectedList.Equals(ListCharUsed))
			{
				EditSelectedCharacter(ref SelectedList);
			}
			else if (SelectedList.Equals(ListItemsUsed))
			{
				EditSelectedItem(ref SelectedList);
			}
			else if (SelectedList.Equals(ListLocUsed))
			{
				EditSelectedLocation(ref SelectedList);
			}
		}

		private void ctxRemoveFromScene_Click(object sender, EventArgs e)
		{
			try
			{
				int num = DisplayedSceneID();
				if (num != 0)
				{
					if (Locked(num))
					{
						clsShared.cLang.TransMsgBox("Cannot change scene, it's being edited.");
					}
					else
					{
						ListView listView = modSubs.WhichListClicked(RuntimeHelpers.GetObjectValue(sender));
						bool flag = default(bool);
						for (int i = listView.SelectedItems.Count - 1; i >= 0; i += -1)
						{
							int num2 = (int)Math.Round(Conversion.Val(RuntimeHelpers.GetObjectValue(listView.SelectedItems[i].Tag)));
							if (listView.Equals(ListCharAll) | listView.Equals(ListCharUsed))
							{
								if (cProject.get_SceneByID(num).ViewPointID == num2)
								{
									flag = true;
								}
								cProject.get_SceneByID(num).RemoveCharByID(num2);
								listView.Items.RemoveAt(i);
							}
							else if (listView.Equals(ListItemsAll) | listView.Equals(ListItemsUsed))
							{
								cProject.get_SceneByID(num).RemoveItemByID(num2);
							}
							else if (listView.Equals(ListLocAll) | listView.Equals(ListLocUsed))
							{
								cProject.get_SceneByID(num).RemoveLocationByID(num2);
							}
						}
						if (flag)
						{
							if (listView.Items.Count > 0)
							{
								cProject.get_SceneByID(num).SetViewpointByID((int)Math.Round(Conversion.Val(RuntimeHelpers.GetObjectValue(ListCharUsed.Items[0].Tag))));
							}
							else
							{
								cProject.get_SceneByID(num).SetViewpointByID(0);
							}
						}
						cProject.get_SceneByID(num).Save();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ctxSetVP_Click(object sender, EventArgs e)
		{
			try
			{
				int num = DisplayedSceneID();
				int num2 = SelectedCharID(0);
				if (!((num == 0) | (num2 == 0)))
				{
					cProject.get_SceneByID(num).ChangeViewpointByID(num2);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ctxListsRC_Opening(object sender, CancelEventArgs e)
		{
			clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
			ContextMenuStrip Menu = ctxListsRC;
			cMenuSubs.DisableDropdownItems(ref Menu);
			ctxListsRC = Menu;
			if (!cProject.IsEmpty)
			{
				try
				{
					ListView listView = modSubs.WhichListClicked(RuntimeHelpers.GetObjectValue(sender));
					if (listView.SelectedItems.Count > 0)
					{
						ctxEditListItem.Enabled = true;
						if (ListScenes.SelectedItems.Count > 0)
						{
							ctxRemoveFromScene.Enabled = true;
							ctxSetVP.Enabled = true;
						}
					}
					ctxSetVP.Visible = false;
					if (listView.Equals(ListCharUsed) && ListScenes.SelectedItems.Count > 0)
					{
						ctxSetVP.Visible = true;
						if (listView.Items.Count == 1)
						{
							ctxSetVP.Enabled = false;
						}
					}
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void ctxAllRC_Opening(object sender, CancelEventArgs e)
		{
			clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
			ContextMenuStrip Menu = ctxAllListsRC;
			cMenuSubs.DisableDropdownItems(ref Menu);
			ctxAllListsRC = Menu;
			if (!cProject.IsEmpty)
			{
				try
				{
					tsmAddNewItem.Enabled = true;
					if (ListScenes.SelectedItems.Count > 0 && modSubs.WhichListClicked(RuntimeHelpers.GetObjectValue(sender)).SelectedItems.Count > 0)
					{
						ctxAddToAllSel.Enabled = true;
						ctxRemoveFromAllSel.Enabled = true;
					}
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void ListChapters_DragDrop(object sender, DragEventArgs e)
		{
			try
			{
				if (e.Effect == DragDropEffects.Move)
				{
					if (HighlightedChapter != Rectangle.Empty)
					{
						ListChapters.Invalidate(HighlightedChapter);
					}
					string[] array = (string[])e.Data.GetData(DataFormats.StringFormat);
					if (array.Length != 0)
					{
						Point point = ListChapters.PointToClient(new Point(e.X, e.Y));
						ListViewItem itemAt = ListChapters.GetItemAt(point.X, point.Y);
						int num = Conversions.ToInteger(itemAt.Tag);
						if (itemAt == null)
						{
							e.Effect = DragDropEffects.None;
						}
						else if (DraggingScene)
						{
							int num2 = array.Length - 1;
							int belongsToChID = default(int);
							for (int i = 0; i <= num2; i++)
							{
								int num3 = Conversions.ToInteger(array[i]);
								belongsToChID = cProject.get_SceneByID(num3).BelongsToChID;
								cProject.get_ChapterByID(belongsToChID).RemoveSceneByID(num3);
								cProject.get_ChapterByID(num).AddSceneID(num3);
								cProject.get_SceneByID(num3).BelongsToChID = num;
								cProject.get_SceneByID(num3).MarkUpdated(DateAndTime.Now);
							}
							if (belongsToChID > 0 && num > 0)
							{
								ListViewItem oItem = ListChapters.Items[Conversions.ToString(belongsToChID)];
								UpdateListItemFromChapter(ref oItem, belongsToChID);
								oItem = ListChapters.Items[Conversions.ToString(num)];
								UpdateListItemFromChapter(ref oItem, num);
								FillSceneList();
								DisplayProgressive(Recalc: true);
							}
						}
						else if (DraggingChapter)
						{
							if (array.Length > 0)
							{
								int chID = Conversions.ToInteger(array[0]);
								if (cProject.Chapters.ChapterIndex(chID) < cProject.Chapters.ChapterIndex(num))
								{
									for (int i = array.Length - 1; i >= 0; i += -1)
									{
										int sourceID = Conversions.ToInteger(array[i]);
										cProject.ChangeChapterSortOrder(sourceID, num);
									}
								}
								else
								{
									int num4 = array.Length - 1;
									for (int i = 0; i <= num4; i++)
									{
										int sourceID = Conversions.ToInteger(array[i]);
										cProject.ChangeChapterSortOrder(sourceID, num);
									}
								}
								cProject.ResortChapters();
								FillChapterList();
							}
						}
						else
						{
							clsShared.cLog.AddAction("Attempt to drag/drop unknown data onto chapter list - failed", MethodBase.GetCurrentMethod());
						}
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListChapters_DragLeave(object sender, EventArgs e)
		{
			try
			{
				if (HighlightedChapter != Rectangle.Empty)
				{
					ListChapters.Invalidate(HighlightedChapter);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListChapters_DragOver(object sender, DragEventArgs e)
		{
			try
			{
				if (!DraggingScene & !DraggingChapter)
				{
					e.Effect = DragDropEffects.None;
				}
				else if (e.Data.GetDataPresent(DataFormats.StringFormat, autoConvert: false))
				{
					e.Effect = DragDropEffects.Move;
					Point point = ListChapters.PointToClient(new Point(e.X, e.Y));
					ListViewItem itemAt = ListChapters.GetItemAt(point.X, point.Y);
					if (itemAt == null)
					{
						e.Effect = DragDropEffects.None;
					}
					else
					{
						int index = itemAt.Index;
						int num = index;
						int index2 = ListChapters.TopItem.Index;
						int num2 = index2 + ListChapters.ClientSize.Height / itemAt.Bounds.Height - 1;
						if (index == index2)
						{
							if (index2 > 0)
							{
								num = index - 1;
							}
						}
						else if (index == num2 && num2 < ListChapters.Items.Count)
						{
							num = index + 1;
						}
						clsListItemHighlight clsListItemHighlight = new clsListItemHighlight();
						ListView TargetList = ListChapters;
						clsListItemHighlight.HighlightTarget(e, ref TargetList, ref HighlightedChapter);
						ListChapters = TargetList;
						try
						{
							if (num != index)
							{
								if (HighlightedChapter != Rectangle.Empty)
								{
									ListChapters.Invalidate(HighlightedChapter);
								}
								cDelay.Sleep(50);
								cDelay.DoEventsForced();
								ListChapters.TopItem = ListChapters.Items[num];
								cDelay.Sleep(50);
								cDelay.DoEventsForced();
							}
						}
						catch (Exception ex)
						{
							ProjectData.SetProjectError(ex);
							Exception ex2 = ex;
							ProjectData.ClearProjectError();
						}
					}
				}
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListChapters_ItemDrag(object sender, ItemDragEventArgs e)
		{
			if (e.Button == MouseButtons.Left)
			{
				ListView SourceList = ListChapters;
				DragStart(ref SourceList, ref DraggingChapter);
				ListChapters = SourceList;
			}
		}

		private void ListChapters_ItemMouseHover(object sender, ListViewItemMouseHoverEventArgs e)
		{
		}

		private void ListChapters_SelectedIndexChanged(object sender, EventArgs e)
		{
			if (!SuppressUpdate)
			{
				DisplayFocusedChapter();
			}
		}

		private void DisplayFocusedChapter()
		{
			try
			{
				if (ListChapters.FocusedItem != null)
				{
					DisplayChapterDesc(Conversions.ToInteger(ListChapters.FocusedItem.Tag));
					if (ListScenes.Items.Count <= 0 || SelectedChapterID() != cProject.get_SceneByID(Conversions.ToInteger(ListScenes.Items[0].Tag)).BelongsToChID)
					{
						FillSceneList();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListNotes_SelectedIndexChanged(object sender, EventArgs e)
		{
			if (!SuppressUpdate)
			{
				DisplaySelectedNote();
			}
		}

		private void tssStatus_Click(object sender, EventArgs e)
		{
			CheckForUpdate(SuppressForm: false, Beta: false);
		}

		private void ToggleChapterOtherToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				if (SelectedChapterID() != 0)
				{
					IEnumerator enumerator = default(IEnumerator);
					try
					{
						enumerator = ListChapters.SelectedItems.GetEnumerator();
						while (enumerator.MoveNext())
						{
							int num = Conversions.ToInteger(((ListViewItem)enumerator.Current).Tag);
							if (num > 0)
							{
								clsChapter clsChapter = cProject.get_ChapterByID(num);
								if (clsChapter.Type == ChapterTypes.ChapterNormal)
								{
									clsChapter.Type = ChapterTypes.ChapterNotes;
								}
								else
								{
									clsChapter.Type = ChapterTypes.ChapterNormal;
								}
								clsChapter.Save();
							}
						}
					}
					finally
					{
						if (enumerator is IDisposable)
						{
							(enumerator as IDisposable).Dispose();
						}
					}
					DisplayProgressive(Recalc: true);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void AttachLangMenus()
		{
			try
			{
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = mnuChooseLang.DropDownItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						((ToolStripMenuItem)enumerator.Current).Click += mnuLanguage_Click;
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void AttachFontMenus()
		{
			try
			{
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = mnuUIFont.DropDownItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						((ToolStripMenuItem)enumerator.Current).Click += mnuFont_Click;
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void CombineSelectedChaptersToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				if (ListChapters.SelectedItems.Count <= 1)
				{
					clsShared.cLang.TransMsgBox("You must select at least two chapters");
				}
				else
				{
					int iD = Conversions.ToInteger(ListChapters.SelectedItems[0].Tag);
					clsChapter clsChapter = cProject.get_ChapterByID(iD);
					int num = ListChapters.SelectedItems.Count - 1;
					for (int i = 1; i <= num; i++)
					{
						iD = Conversions.ToInteger(ListChapters.SelectedItems[i].Tag);
						int sceneCount = cProject.get_ChapterByID(iD).SceneCount;
						for (int j = 1; j <= sceneCount; j++)
						{
							int num2 = cProject.get_ChapterByID(iD).get_SceneIDByIndex(j);
							cProject.get_SceneByID(num2).BelongsToChID = clsChapter.ID;
							clsChapter.AddSceneID(num2);
						}
						if (Operators.CompareString(cProject.get_ChapterByID(iD).DescText, "", TextCompare: false) != 0)
						{
							clsChapter clsChapter2;
							(clsChapter2 = clsChapter).DescText = clsChapter2.DescText + "\r\n\r\n" + cProject.get_ChapterByID(iD).DescText;
						}
						cProject.RemoveChapterOnlyByID(iD);
					}
					cProject.QuickSave();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void DeleteDuplicateScenesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				if (clsShared.cLang.TransMsgBox("This will delete duplicate scenes (where the content is identical), leaving the one with the longer description. Are you sure?", MsgBoxStyle.YesNo) != MsgBoxResult.No)
				{
					IEnumerator enumerator = default(IEnumerator);
					try
					{
						enumerator = cProject.Scenes.GetEnumerator();
						IEnumerator enumerator2 = default(IEnumerator);
						while (enumerator.MoveNext())
						{
							clsScene clsScene = (clsScene)enumerator.Current;
							if ((Operators.CompareString(clsScene.TextRTF, "Delete", TextCompare: false) != 0) & (Operators.CompareString(clsScene.TextRTF, "", TextCompare: false) != 0))
							{
								try
								{
									enumerator2 = cProject.Scenes.GetEnumerator();
									while (enumerator2.MoveNext())
									{
										clsScene clsScene2 = (clsScene)enumerator2.Current;
										if (clsScene.ID != clsScene2.ID && Operators.CompareString(Strings.Trim(clsScene.TextRTF), Strings.Trim(clsScene2.TextRTF), TextCompare: false) == 0)
										{
											if (Strings.Len(clsScene2.DescText) < Strings.Len(clsScene.DescText))
											{
												clsScene2.TextRTF = "Delete";
											}
											else
											{
												clsScene.TextRTF = "Delete";
											}
										}
									}
								}
								finally
								{
									if (enumerator2 is IDisposable)
									{
										(enumerator2 as IDisposable).Dispose();
									}
								}
							}
						}
					}
					finally
					{
						if (enumerator is IDisposable)
						{
							(enumerator as IDisposable).Dispose();
						}
					}
					IEnumerator enumerator3 = default(IEnumerator);
					try
					{
						enumerator3 = cProject.Chapters.GetEnumerator();
						while (enumerator3.MoveNext())
						{
							clsChapter clsChapter = (clsChapter)enumerator3.Current;
							int sceneCount = clsChapter.SceneCount;
							for (int i = 1; i <= sceneCount; i++)
							{
								int iD = cProject.get_SceneByChID(clsChapter.ID, i).ID;
								clsScene clsScene = cProject.get_SceneByID(iD);
								if (Operators.CompareString(clsScene.TextRTF, "Delete", TextCompare: false) == 0)
								{
									cProject.RemoveSceneByID(iD);
									if (!cProject.V6File)
									{
										clsShared.cFile.EraseFile(Path.Combine(yW5Lib.modSubs.RTFPathV5(cProject.ProjectPath()), clsScene.RTFFilename));
									}
								}
							}
						}
					}
					finally
					{
						if (enumerator3 is IDisposable)
						{
							(enumerator3 as IDisposable).Dispose();
						}
					}
					SaveProject(CriticalSave: true);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListLocAll_DragDrop(object sender, DragEventArgs e)
		{
			try
			{
				if (e.Effect == DragDropEffects.Move)
				{
					string[] array = (string[])e.Data.GetData(DataFormats.StringFormat);
					int num = array.Length - 1;
					IEnumerator enumerator = default(IEnumerator);
					for (int i = 0; i <= num; i++)
					{
						int iD = Conversions.ToInteger(array[i]);
						try
						{
							enumerator = ListScenes.SelectedItems.GetEnumerator();
							while (enumerator.MoveNext())
							{
								int num2 = Conversions.ToInteger(((ListViewItem)enumerator.Current).Tag);
								clsScene clsScene = cProject.get_SceneByID(num2);
								clsScene.RemoveLocationByID(iD);
								if (clsScene.ID == mvarSelectedSceneID)
								{
									clsScene.TriggerSaveEvent();
								}
								ListViewItem oItem = ListScenes.Items[Conversions.ToString(num2)];
								UpdateListItemFromScene(ref oItem, num2);
							}
						}
						finally
						{
							if (enumerator is IDisposable)
							{
								(enumerator as IDisposable).Dispose();
							}
						}
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListLocAll_DragOver(object sender, DragEventArgs e)
		{
			try
			{
				if (!DraggingLoc)
				{
					e.Effect = DragDropEffects.None;
				}
				else if (e.Data.GetDataPresent(DataFormats.StringFormat, autoConvert: false))
				{
					e.Effect = DragDropEffects.Move;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListLocAll_ItemDrag(object sender, ItemDragEventArgs e)
		{
			if (e.Button == MouseButtons.Left)
			{
				ListView SourceList = ListLocAll;
				DragStart(ref SourceList, ref DraggingLoc, DragDropEffects.Copy);
				ListLocAll = SourceList;
			}
		}

		private void ListLocUsed_DragDrop(object sender, DragEventArgs e)
		{
			//Discarded unreachable code: IL_00d2, IL_00e9, IL_00f4, IL_0104, IL_0156, IL_0158, IL_016c, IL_018e
			int num = default(int);
			int num4 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (e.Effect == DragDropEffects.Copy)
				{
					num2 = 3;
					e.Effect = DragDropEffects.None;
					num2 = 4;
					string[] array = (string[])e.Data.GetData(DataFormats.StringFormat);
					num2 = 5;
					IEnumerator enumerator = ListScenes.SelectedItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						ListViewItem listViewItem = (ListViewItem)enumerator.Current;
						num2 = 6;
						clsScene clsScene = cProject.get_SceneByID(Conversions.ToInteger(listViewItem.Tag));
						num2 = 7;
						int num3 = array.Length - 1;
						for (int i = 0; i <= num3; i++)
						{
							num2 = 8;
							clsScene.AddLocationByID(Conversions.ToInteger(array[i]));
							num2 = 9;
						}
						num2 = 10;
						clsScene.TriggerSaveEvent();
						num2 = 11;
					}
					num2 = 12;
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num4 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_018c: Could not find block for branch target IL_0158*/;
			}
			if (num4 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ListLocUsed_DragOver(object sender, DragEventArgs e)
		{
			try
			{
				if (!DraggingLoc | (ListScenes.Items.Count == 0))
				{
					e.Effect = DragDropEffects.None;
				}
				else if (e.Data.GetDataPresent(DataFormats.StringFormat, autoConvert: false))
				{
					e.Effect = DragDropEffects.Copy;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListItemsUsed_DragDrop(object sender, DragEventArgs e)
		{
			try
			{
				if (e.Effect == DragDropEffects.Copy)
				{
					string[] array = (string[])e.Data.GetData(DataFormats.StringFormat);
					IEnumerator enumerator = default(IEnumerator);
					try
					{
						enumerator = ListScenes.SelectedItems.GetEnumerator();
						while (enumerator.MoveNext())
						{
							ListViewItem listViewItem = (ListViewItem)enumerator.Current;
							clsScene clsScene = cProject.get_SceneByID(Conversions.ToInteger(listViewItem.Tag));
							int num = array.Length - 1;
							for (int i = 0; i <= num; i++)
							{
								clsScene.AddItemByID(Conversions.ToInteger(array[i]));
							}
							clsScene.TriggerSaveEvent();
						}
					}
					finally
					{
						if (enumerator is IDisposable)
						{
							(enumerator as IDisposable).Dispose();
						}
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListItemsUsed_DragOver(object sender, DragEventArgs e)
		{
			try
			{
				if (!DraggingItems | (ListScenes.Items.Count == 0))
				{
					e.Effect = DragDropEffects.None;
				}
				else if (e.Data.GetDataPresent(DataFormats.StringFormat, autoConvert: false))
				{
					e.Effect = DragDropEffects.Copy;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListCharUsed_DragDrop(object sender, DragEventArgs e)
		{
			//Discarded unreachable code: IL_00d2, IL_00e9, IL_00f4, IL_0104, IL_0156, IL_0158, IL_016c, IL_018e
			int num = default(int);
			int num4 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (e.Effect == DragDropEffects.Copy)
				{
					num2 = 3;
					e.Effect = DragDropEffects.None;
					num2 = 4;
					string[] array = (string[])e.Data.GetData(DataFormats.StringFormat);
					num2 = 5;
					IEnumerator enumerator = ListScenes.SelectedItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						ListViewItem listViewItem = (ListViewItem)enumerator.Current;
						num2 = 6;
						clsScene clsScene = cProject.get_SceneByID(Conversions.ToInteger(listViewItem.Tag));
						num2 = 7;
						int num3 = array.Length - 1;
						for (int i = 0; i <= num3; i++)
						{
							num2 = 8;
							clsScene.AddCharByID(Conversions.ToInteger(array[i]));
							num2 = 9;
						}
						num2 = 10;
						clsScene.TriggerSaveEvent();
						num2 = 11;
					}
					num2 = 12;
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num4 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_018c: Could not find block for branch target IL_0158*/;
			}
			if (num4 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ListCharUsed_DragOver(object sender, DragEventArgs e)
		{
			try
			{
				if (!DraggingChar | (ListScenes.Items.Count == 0))
				{
					e.Effect = DragDropEffects.None;
				}
				else if (e.Data.GetDataPresent(DataFormats.StringFormat, autoConvert: false))
				{
					e.Effect = DragDropEffects.Copy;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListChar_DoubleClick(object eventSender, EventArgs eventArgs)
		{
			try
			{
				ListView listView = (ListView)eventSender;
				if (listView.FocusedItem != null)
				{
					DisplayedSceneID();
					int charID = (int)Math.Round(Conversion.Val(RuntimeHelpers.GetObjectValue(listView.FocusedItem.Tag)));
					modEditChar.EditChar(ref cProject, charID);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListItemsUsed_ItemDrag(object sender, ItemDragEventArgs e)
		{
			if (e.Button == MouseButtons.Left)
			{
				ListView SourceList = ListItemsUsed;
				DragStart(ref SourceList, ref DraggingItems);
				ListItemsUsed = SourceList;
			}
		}

		private void ListItemsAll_DragDrop(object sender, DragEventArgs e)
		{
			//Discarded unreachable code: IL_00ea, IL_0101, IL_010c, IL_011c, IL_0166, IL_0168, IL_017c, IL_019e
			int num = default(int);
			int num4 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (e.Effect == DragDropEffects.Move)
				{
					num2 = 3;
					string[] array = (string[])e.Data.GetData(DataFormats.StringFormat);
					num2 = 4;
					IEnumerator enumerator = ListScenes.SelectedItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						ListViewItem listViewItem = (ListViewItem)enumerator.Current;
						num2 = 5;
						clsScene clsScene = cProject.get_SceneByID(Conversions.ToInteger(listViewItem.Tag));
						num2 = 6;
						int num3 = array.Length - 1;
						for (int i = 0; i <= num3; i++)
						{
							num2 = 7;
							clsScene.RemoveItemByID(Conversions.ToInteger(array[i]));
							num2 = 8;
						}
						num2 = 9;
					}
					num2 = 10;
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
					num2 = 11;
					clsFillList clsFillList = cFill;
					clsProject clsProject = cProject;
					ListView aList = ListItemsUsed;
					clsFillList.FillItemsInScene(clsProject, ref aList, DisplayedSceneID());
					ListItemsUsed = aList;
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num4 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_019c: Could not find block for branch target IL_0168*/;
			}
			if (num4 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ListItemsAll_DragOver(object sender, DragEventArgs e)
		{
			try
			{
				if (!DraggingItems)
				{
					e.Effect = DragDropEffects.None;
				}
				if (e.Data.GetDataPresent(DataFormats.StringFormat, autoConvert: false))
				{
					e.Effect = DragDropEffects.Move;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListItemsAll_ItemDrag(object sender, ItemDragEventArgs e)
		{
			if (e.Button == MouseButtons.Left)
			{
				ListView SourceList = ListItemsAll;
				DragStart(ref SourceList, ref DraggingItems, DragDropEffects.Copy);
				ListItemsAll = SourceList;
			}
		}

		private void ListScenes_ItemDrag(object sender, ItemDragEventArgs e)
		{
			if (e.Button == MouseButtons.Left)
			{
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = ListScenes.SelectedItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						int num = Conversions.ToInteger(((ListViewItem)enumerator.Current).Tag);
						if (Locked(num) | cProject.get_SceneByID(num).EditingExternal)
						{
							return;
						}
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
				ListView SourceList = ListScenes;
				DragStart(ref SourceList, ref DraggingScene);
				ListScenes = SourceList;
			}
		}

		private void ListScenes_DragOver(object sender, DragEventArgs e)
		{
			if (DraggingChapter | DraggingChar | DraggingItems | DraggingLoc | DraggingNote)
			{
				e.Effect = DragDropEffects.None;
			}
			else
			{
				try
				{
					if (e.Data.GetDataPresent(DataFormats.StringFormat, autoConvert: false))
					{
						clsListItemHighlight clsListItemHighlight = new clsListItemHighlight();
						e.Effect = DragDropEffects.Move;
						ListView TargetList = ListScenes;
						clsListItemHighlight.HighlightTarget(e, ref TargetList, ref HighlightedScene);
						ListScenes = TargetList;
					}
					else if (e.Data.GetDataPresent(DataFormats.FileDrop, autoConvert: false))
					{
						clsListItemHighlight clsListItemHighlight2 = new clsListItemHighlight();
						e.Effect = DragDropEffects.Copy;
						ListView TargetList = ListScenes;
						clsListItemHighlight2.HighlightTarget(e, ref TargetList, ref HighlightedScene);
						ListScenes = TargetList;
					}
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void ListScenes_DragLeave(object sender, EventArgs e)
		{
			try
			{
				if (HighlightedScene != Rectangle.Empty)
				{
					ListScenes.Invalidate(HighlightedScene);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void DragStart(ref ListView SourceList, ref bool DraggingWhat, DragDropEffects Effect = DragDropEffects.Move)
		{
			//Discarded unreachable code: IL_00a8, IL_00bf, IL_00ca, IL_00da, IL_0124, IL_0126, IL_013a, IL_015c
			int num = default(int);
			int num4 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				ResetDraggingWhat();
				num2 = 3;
				DraggingWhat = true;
				num2 = 4;
				string[] array = new string[SourceList.SelectedItems.Count - 1 + 1];
				num2 = 5;
				int num3 = 0;
				num2 = 6;
				IEnumerator enumerator = SourceList.SelectedItems.GetEnumerator();
				while (enumerator.MoveNext())
				{
					ListViewItem listViewItem = (ListViewItem)enumerator.Current;
					num2 = 7;
					array[num3] = Conversions.ToString(listViewItem.Tag);
					num2 = 8;
					num3++;
					num2 = 9;
				}
				num2 = 10;
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
				num2 = 11;
				DoDragDrop(new DataObject(DataFormats.StringFormat, array), Effect);
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num4 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_015a: Could not find block for branch target IL_0126*/;
			}
			if (num4 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ListLocUsed_ItemDrag(object sender, ItemDragEventArgs e)
		{
			if (e.Button == MouseButtons.Left)
			{
				ListView SourceList = ListLocUsed;
				DragStart(ref SourceList, ref DraggingLoc);
				ListLocUsed = SourceList;
			}
		}

		private void ListCharAll_DragDrop(object sender, DragEventArgs e)
		{
			//Discarded unreachable code: IL_0103, IL_011a, IL_0125, IL_0135, IL_018b, IL_018d, IL_01a1, IL_01c3
			int num = default(int);
			int num5 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (e.Effect == DragDropEffects.Move)
				{
					num2 = 3;
					string[] array = (string[])e.Data.GetData(DataFormats.StringFormat);
					num2 = 4;
					int num3 = array.Length - 1;
					for (int i = 0; i <= num3; i++)
					{
						num2 = 5;
						int iD = Conversions.ToInteger(array[i]);
						num2 = 6;
						IEnumerator enumerator = ListScenes.SelectedItems.GetEnumerator();
						while (enumerator.MoveNext())
						{
							ListViewItem listViewItem = (ListViewItem)enumerator.Current;
							num2 = 7;
							int num4 = Conversions.ToInteger(listViewItem.Tag);
							num2 = 8;
							clsScene clsScene = cProject.get_SceneByID(num4);
							num2 = 9;
							clsScene.RemoveCharByID(iD);
							num2 = 10;
							ListViewItem oItem = ListScenes.Items[Conversions.ToString(num4)];
							UpdateListItemFromScene(ref oItem, num4);
							num2 = 11;
							clsScene.TriggerSaveEvent();
							num2 = 12;
						}
						num2 = 13;
						if (enumerator is IDisposable)
						{
							(enumerator as IDisposable).Dispose();
						}
						num2 = 14;
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num5 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_01c1: Could not find block for branch target IL_018d*/;
			}
			if (num5 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ListCharAll_DragOver(object sender, DragEventArgs e)
		{
			try
			{
				if (!DraggingChar)
				{
					e.Effect = DragDropEffects.None;
				}
				else if (e.Data.GetDataPresent(DataFormats.StringFormat, autoConvert: false))
				{
					e.Effect = DragDropEffects.Move;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListCharAll_ItemDrag(object sender, ItemDragEventArgs e)
		{
			try
			{
				if (e.Button == MouseButtons.Left)
				{
					ListView SourceList = ListCharAll;
					DragStart(ref SourceList, ref DraggingChar, DragDropEffects.Copy);
					ListCharAll = SourceList;
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListCharUsed_ItemDrag(object sender, ItemDragEventArgs e)
		{
			if (e.Button == MouseButtons.Left)
			{
				try
				{
					ListView SourceList = ListCharUsed;
					DragStart(ref SourceList, ref DraggingChar);
					ListCharUsed = SourceList;
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void UpdateChapterList(int ScID)
		{
			//Discarded unreachable code: IL_0048, IL_005e, IL_0068, IL_0075, IL_00a7, IL_00a9, IL_00bd, IL_00df
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				int belongsToChID = cProject.get_SceneByID(ScID).BelongsToChID;
				num2 = 3;
				ListViewItem oItem = ListChapters.Items[Conversions.ToString(belongsToChID)];
				num2 = 4;
				if (oItem != null)
				{
					num2 = 5;
					UpdateListItemFromChapter(ref oItem, belongsToChID);
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_00dd: Could not find block for branch target IL_00a9*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void UpdateSceneList(int ScID)
		{
			//Discarded unreachable code: IL_0077, IL_008e, IL_0099, IL_00a9, IL_00e7, IL_00e9, IL_00fd, IL_011f
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (ListScenes.Items.ContainsKey(Conversions.ToString(ScID)))
				{
					num2 = 3;
					ListViewItem oItem = ListScenes.Items[Conversions.ToString(ScID)];
					num2 = 4;
					ListScenes.BeginUpdate();
					num2 = 5;
					UpdateListItemFromScene(ref oItem, ScID);
					num2 = 6;
					if (oItem.Focused)
					{
						num2 = 7;
						DisplaySelectedScene();
					}
					num2 = 8;
					ListScenes.EndUpdate();
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_011d: Could not find block for branch target IL_00e9*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void mnuViewLog_Click(object sender, EventArgs e)
		{
			//Discarded unreachable code: IL_002b, IL_0041, IL_004b, IL_0058, IL_0082, IL_0084, IL_0098, IL_00ba
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				clsShared.cLog.WriteActionsToLog();
				num2 = 3;
				clsShared.cFile.RunFile(clsShared.cLog.CurrentLogFilename());
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_00b8: Could not find block for branch target IL_0084*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ctxScenes_Opening(object sender, CancelEventArgs e)
		{
			if (clsShared.cOSInfo.IsWine())
			{
				Console.WriteLine("Opening ctxScenes");
			}
			try
			{
				clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
				ContextMenuStrip Menu = ctxScenes;
				cMenuSubs.DisableDropdownItems(ref Menu);
				ctxScenes = Menu;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				if (clsShared.cOSInfo.IsWine())
				{
					Console.WriteLine(ex2.Message);
				}
				ProjectData.ClearProjectError();
			}
			if (!cProject.IsEmpty)
			{
				try
				{
					IEnumerator enumerator = default(IEnumerator);
					try
					{
						enumerator = ctxSetStatus.DropDownItems.GetEnumerator();
						while (enumerator.MoveNext())
						{
							object objectValue = RuntimeHelpers.GetObjectValue(enumerator.Current);
							try
							{
								((ToolStripMenuItem)objectValue).Checked = false;
							}
							catch (Exception ex3)
							{
								ProjectData.SetProjectError(ex3);
								Exception ex4 = ex3;
								ProjectData.ClearProjectError();
							}
						}
					}
					finally
					{
						if (enumerator is IDisposable)
						{
							(enumerator as IDisposable).Dispose();
						}
					}
				}
				catch (Exception ex5)
				{
					ProjectData.SetProjectError(ex5);
					Exception ex6 = ex5;
					ProjectData.ClearProjectError();
				}
				try
				{
					int num = SelectedChapterID();
					int num2 = mvarSelectedSceneID;
					if (cProject.SceneCount > 0)
					{
						mnuSetAllSceneFont.Enabled = true;
						mnuSceneList.Enabled = true;
					}
					if (num > 0)
					{
						ctxAddNewScene.Enabled = true;
						ctxPasteScenesFromClipboard.Enabled = true;
					}
					if (num2 > 0)
					{
						if (!cProject.V6File)
						{
							OpenContainingFolderToolStripMenuItem.Enabled = true;
							if (Locked(num2) | cProject.get_SceneByID(num2).EditingExternal)
							{
								FinishedWithExternalEditorToolStripMenuItem.Enabled = true;
							}
							else
							{
								OpenRTFWithDefaultEditorToolStripMenuItem.Enabled = true;
							}
						}
						if (!Locked(num2) & !cProject.get_SceneByID(num2).EditingExternal)
						{
							ctxToggleUsed.Enabled = true;
							ctxSetStatus.Enabled = true;
							ctxRemoveSelected.Enabled = true;
							ctxEditSelected.Enabled = true;
						}
						ctxScenesToClipboard.Enabled = true;
						tsbCreateScenesAndChaptersFromScene.Enabled = true;
						DuplicateThisSceneToolStripMenuItem.Enabled = true;
						if (cProject.get_SceneByID(num2).ContainsYW2Code)
						{
							mnuConvYW2Scn.Visible = true;
						}
						else
						{
							mnuConvYW2Scn.Visible = false;
						}
						int status = cProject.get_SceneByID(num2).Status;
						SetDateToolStripMenuItem.Enabled = true;
						try
						{
							((ToolStripMenuItem)ctxSetStatus.DropDownItems[Conversions.ToString(status)]).Checked = true;
						}
						catch (Exception ex7)
						{
							ProjectData.SetProjectError(ex7);
							Exception ex8 = ex7;
							ProjectData.ClearProjectError();
						}
					}
				}
				catch (Exception ex9)
				{
					ProjectData.SetProjectError(ex9);
					Exception ex10 = ex9;
					clsShared.cLog.AddAction(ex10, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void ClearSceneDetails(bool ClearBodyToo)
		{
			try
			{
				LockMainScreenSceneEdits();
				mvarDisplayedSceneID = 0;
				ListItemsUsed.Items.Clear();
				ListLocUsed.Items.Clear();
				ListCharUsed.Items.Clear();
				TabControlMain.SuspendLayout();
				if (ClearBodyToo)
				{
					txtBody.Text = "";
				}
				txtDesc.Text = "";
				txtSceneNotes.Text = "";
				txtSceneTitle.Text = "";
				txtSceneTitle.Tag = "";
				ClearGoalFields();
				TableLayoutGoals.Tag = 0;
				txtCharDesc.Text = "";
				txtCharDesc.Tag = "";
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			finally
			{
				TabControlMain.ResumeLayout();
			}
		}

		private void PrintSelectedNotesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			//Discarded unreachable code: IL_00c0, IL_00d7, IL_00e2, IL_00f2, IL_0140, IL_0142, IL_0156, IL_0178
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (ListNotes.SelectedItems.Count == 0)
				{
					num2 = 3;
					clsShared.cLang.TransMsgBox("Select one or more notes to print");
				}
				else
				{
					num2 = 5;
					Collection collection = new Collection();
					num2 = 6;
					IEnumerator enumerator = ListNotes.SelectedItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						ListViewItem listViewItem = (ListViewItem)enumerator.Current;
						num2 = 7;
						collection.Add(Conversions.ToInteger(listViewItem.Tag));
						num2 = 8;
					}
					num2 = 9;
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
					num2 = 10;
					clsPrintNotes clsPrintNotes = new clsPrintNotes();
					num2 = 11;
					clsPrintNotes.PrintNotes(cProject, collection);
					num2 = 12;
					clsPrintNotes = null;
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0176: Could not find block for branch target IL_0142*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void ctxNotes_Opening(object sender, CancelEventArgs e)
		{
			clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
			ContextMenuStrip Menu = ctxNotes;
			cMenuSubs.DisableDropdownItems(ref Menu);
			ctxNotes = Menu;
			if (!cProject.IsEmpty)
			{
				if (ListNotes.SelectedItems.Count > 0)
				{
					PrintSelectedNotesToolStripMenuItem.Enabled = true;
					DeleteNoteToolStripMenuItem.Enabled = true;
				}
				if (cProject.NoteCount > 0)
				{
					PrintAllNotesToolStripMenuItem.Enabled = true;
				}
				NewNoteToolStripMenuItem.Enabled = true;
			}
		}

		private void SetFontAcrossAllScenes(string Fontname, float FontSize)
		{
			//Discarded unreachable code: IL_00fc, IL_0113, IL_011e, IL_012e, IL_0194, IL_0196, IL_01aa, IL_01cc
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				clsRTF clsRTF = new clsRTF(ref clsShared.cLog, ref clsShared.cSettings);
				num2 = 3;
				clsShared.cSubs.BusyMouse();
				num2 = 4;
				string text = "";
				num2 = 5;
				IEnumerator enumerator = cProject.Scenes.GetEnumerator();
				bool flag = default(bool);
				while (enumerator.MoveNext())
				{
					clsScene clsScene = (clsScene)enumerator.Current;
					num2 = 6;
					text = clsScene.TextRTF;
					num2 = 7;
					if (text.Length > 0)
					{
						num2 = 8;
						if (clsRTF.ReplaceRTFFontName(ref text, Fontname))
						{
							num2 = 9;
							flag = true;
						}
						num2 = 10;
						if (clsRTF.ReplaceRTFFontSize(ref text, FontSize))
						{
							num2 = 11;
							flag = true;
						}
						num2 = 12;
						if (flag)
						{
							num2 = 13;
							clsScene.TextRTF = text;
							num2 = 14;
							clsScene.SaveRTFV5(cProject.ProjectPath());
							num2 = 15;
							clsScene.Save();
						}
					}
					num2 = 16;
				}
				num2 = 17;
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
				num2 = 18;
				clsShared.cSubs.NormalMouse();
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_01ca: Could not find block for branch target IL_0196*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void RemoveProjectHandlers()
		{
			//Discarded unreachable code: IL_01a2, IL_01b9, IL_01c4, IL_01d4, IL_0236, IL_0238, IL_024c, IL_026e
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				cProject.AddedNewScene -= cProject_AddedNewScene;
				num2 = 3;
				cProject.AddedNewChar -= cProject_UpdatedChar;
				num2 = 4;
				cProject.AddedNewItem -= cProject_UpdatedItem;
				num2 = 5;
				cProject.AddedNewLocation -= cProject_UpdatedLocation;
				num2 = 6;
				cProject.AddedNewChapter -= cProject_AddedNewChapter;
				num2 = 7;
				cProject.RemovedChar -= cProject_UpdatedChar;
				num2 = 8;
				cProject.RemovedItem -= cProject_UpdatedItem;
				num2 = 9;
				cProject.RemovedLocation -= cProject_UpdatedLocation;
				num2 = 10;
				cProject.RemovedScene -= cProject_RemovedScene;
				num2 = 11;
				cProject.RemovedChapter -= cProject_RemovedChapter;
				num2 = 12;
				cProject.SavedNote -= cProject_SavedNote;
				num2 = 13;
				cProject.SavedScene -= cProject_SavedScene;
				num2 = 14;
				cProject.SavedChar -= cProject_SavedChar;
				num2 = 15;
				cProject.SavedItem -= cProject_SavedItem;
				num2 = 16;
				cProject.SavedLocation -= cProject_SavedLocation;
				num2 = 17;
				cProject.SavedChapter -= cProject_SavedChapter;
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_026c: Could not find block for branch target IL_0238*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void AddProjectHandlers()
		{
			//Discarded unreachable code: IL_01a2, IL_01b9, IL_01c4, IL_01d4, IL_0236, IL_0238, IL_024c, IL_026e
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				cProject.AddedNewScene += cProject_AddedNewScene;
				num2 = 3;
				cProject.AddedNewChar += cProject_UpdatedChar;
				num2 = 4;
				cProject.AddedNewItem += cProject_UpdatedItem;
				num2 = 5;
				cProject.AddedNewLocation += cProject_UpdatedLocation;
				num2 = 6;
				cProject.AddedNewChapter += cProject_AddedNewChapter;
				num2 = 7;
				cProject.RemovedScene += cProject_RemovedScene;
				num2 = 8;
				cProject.RemovedChapter += cProject_RemovedChapter;
				num2 = 9;
				cProject.RemovedChar += cProject_UpdatedChar;
				num2 = 10;
				cProject.RemovedItem += cProject_UpdatedItem;
				num2 = 11;
				cProject.RemovedLocation += cProject_UpdatedLocation;
				num2 = 12;
				cProject.SavedNote += cProject_SavedNote;
				num2 = 13;
				cProject.SavedScene += cProject_SavedScene;
				num2 = 14;
				cProject.SavedChar += cProject_SavedChar;
				num2 = 15;
				cProject.SavedItem += cProject_SavedItem;
				num2 = 16;
				cProject.SavedLocation += cProject_SavedLocation;
				num2 = 17;
				cProject.SavedChapter += cProject_SavedChapter;
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_026c: Could not find block for branch target IL_0238*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void cProject_NotesRearranged()
		{
		}

		private void cProject_AddedNewChapter(int ID)
		{
			int num = default(int);
			try
			{
				num = cProject.Chapters.ChapterIndex(ID);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				ListViewItem oItem = (ListChapters.Items.Count != 0) ? ListChapters.Items.Insert(num - 1, Conversions.ToString(ID), "", "") : ListChapters.Items.Add(Conversions.ToString(ID), "", "");
				UpdateListItemFromChapter(ref oItem, ID);
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			DisplayProgressive(Recalc: true);
		}

		private void cProject_UpdatedChar(int ID)
		{
			try
			{
				clsFillList clsFillList = cFill;
				clsProject clsProject = cProject;
				ListView aList = ListCharAll;
				clsFillList.FillAllCharList(clsProject, ref aList, MajorOnly: false);
				ListCharAll = aList;
				RefreshSceneList();
				if (TabControlMain.SelectedTab == TabProjectChar)
				{
					StartResetCharListTimer();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cProject_RemovedScene(int ID)
		{
			string key = Conversions.ToString(ID);
			if (!ListScenes.Items.ContainsKey(key))
			{
				return;
			}
			ListScenes.Items.RemoveByKey(key);
			if ((mvarSelectedSceneID == ID) | (mvarDisplayedSceneID == ID))
			{
				if (ListScenes.Items.Count > 0)
				{
					mvarSelectedSceneID = Conversions.ToInteger(ListScenes.Items[0].Tag);
				}
				else
				{
					mvarSelectedSceneID = -1;
				}
			}
			DisplaySelectedScene();
		}

		private void cProject_RemovedChapter(int ID)
		{
			string key = Conversions.ToString(ID);
			if (ListChapters.Items.ContainsKey(key))
			{
				ListChapters.Items.RemoveByKey(key);
				if (ListChapters.Items.Count > 0)
				{
					DisplayChapterDesc(Conversions.ToInteger(ListChapters.Items[0].Tag));
				}
				DisplayProgressive(Recalc: true);
			}
		}

		private void cProject_AddedNewScene(int ID)
		{
			//Discarded unreachable code: IL_0099, IL_00b0, IL_00bb, IL_00cb, IL_0115, IL_0117, IL_012b, IL_014d
			int num = default(int);
			int num4 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				clsScene clsScene = cProject.get_SceneByID(ID);
				num2 = 3;
				if (clsScene.BelongsToChID == SelectedChapterID())
				{
					num2 = 4;
					clsChapter clsChapter = cProject.get_ChapterByID(clsScene.BelongsToChID);
					num2 = 5;
					int num3 = clsChapter.SceneIndex(ID);
					num2 = 6;
					if (num3 > 0)
					{
						num2 = 7;
						ListViewItem oItem = ListScenes.Items.Insert(num3 - 1, Conversions.ToString(ID), "", "");
						num2 = 8;
						UpdateListItemFromScene(ref oItem, ID);
					}
					num2 = 9;
					clsChapter = null;
					num2 = 10;
					DisplayProgressive(Recalc: true);
				}
				num2 = 11;
				clsScene = null;
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num4 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_014b: Could not find block for branch target IL_0117*/;
			}
			if (num4 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void cProject_UpdatedItem(int ID)
		{
			clsFillList clsFillList = cFill;
			clsProject clsProject = cProject;
			ListView aList = ListItemsAll;
			clsFillList.FillAllItems(clsProject, ref aList);
			ListItemsAll = aList;
			if (TabControlMain.SelectedTab == TabProjectItem)
			{
				FillProjectItemList();
			}
		}

		private void cProject_UpdatedLocation(int ID)
		{
			clsFillList clsFillList = cFill;
			clsProject clsProject = cProject;
			ListView aList = ListLocAll;
			clsFillList.FillAllLocations(clsProject, ref aList);
			ListLocAll = aList;
			if (TabControlMain.SelectedTab == TabProjectLoc)
			{
				FillProjectLocList();
			}
		}

		private void cProject_SavedChapter(int ID)
		{
			try
			{
				ListViewItem oItem = ListChapters.Items[Conversions.ToString(ID)];
				UpdateListItemFromChapter(ref oItem, ID);
				if (SelectedChapterID() == ID)
				{
					DisplayChapterDesc(ID);
					FillSceneList();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cProject_SavedChar(int ID)
		{
			try
			{
				clsCharacter clsCharacter = cProject.get_CharByID(ID);
				string key = Conversions.ToString(ID);
				ListCharAll.Items[key].Text = clsCharacter.Title;
				ListCharAll.Items[key].SubItems[1].Text = clsCharacter.FullName;
				if (ListCharUsed.Items.ContainsKey(key))
				{
					ListCharUsed.Items[key].Text = clsCharacter.Title;
				}
				if (ListCharAll.Items.ContainsKey(key))
				{
					ListCharAll.Items[key].Text = clsCharacter.Title;
					ListCharAll.Items[key].SubItems[1].Text = clsCharacter.FullName;
				}
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = ListScenes.Items.GetEnumerator();
					while (enumerator.MoveNext())
					{
						ListViewItem oItem = (ListViewItem)enumerator.Current;
						clsScene clsScene = cProject.get_SceneByID(Conversions.ToInteger(oItem.Tag));
						if (clsScene.ViewPointID == ID)
						{
							UpdateListItemFromScene(ref oItem, clsScene.ID);
						}
						else if (clsScene.ContainsCharID(ID))
						{
							UpdateListItemFromScene(ref oItem, clsScene.ID);
						}
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
				if (TabControlMain.SelectedTab == TabProjectChar)
				{
					StartResetCharListTimer();
				}
				if (Operators.CompareString(Conversions.ToString(txtCharDesc.Tag), "", TextCompare: false) != 0 && Conversions.ToInteger(txtCharDesc.Tag) == ID)
				{
					FillCharDescText(ID);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cProject_SavedNote(int ID)
		{
			try
			{
				clsNote clsNote = cProject.get_NoteByID(ID);
				ListNotes.Items[Conversions.ToString(ID)].Text = clsNote.Title;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cProject_SavedScene(int ID)
		{
			try
			{
				UpdateSceneList(ID);
				UpdateChapterList(ID);
				DisplayProgressive(Recalc: true);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cProject_SavedItem(int ID)
		{
			try
			{
				clsItem clsItem = cProject.get_ItemByID(ID);
				string key = Conversions.ToString(ID);
				if (ListItemsUsed.Items.ContainsKey(key))
				{
					ListItemsUsed.Items[key].Text = clsItem.Title;
				}
				if (ListItemsAll.Items.ContainsKey(key))
				{
					ListItemsAll.Items[key].Text = clsItem.Title;
				}
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = ListScenes.Items.GetEnumerator();
					while (enumerator.MoveNext())
					{
						ListViewItem oItem = (ListViewItem)enumerator.Current;
						clsScene clsScene = cProject.get_SceneByID(Conversions.ToInteger(oItem.Tag));
						if (clsScene.ContainsItemID(ID))
						{
							UpdateListItemFromScene(ref oItem, clsScene.ID);
						}
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
				if (TabControlMain.SelectedTab == TabProjectItem)
				{
					FillProjectItemList();
				}
				if (Conversions.ToInteger(txtItemDesc.Tag) == ID)
				{
					FillItemDescText(ID);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void cProject_SavedLocation(int ID)
		{
			try
			{
				clsLocation clsLocation = cProject.get_LocationByID(ID);
				string key = Conversions.ToString(ID);
				ListLocAll.Items[key].Text = clsLocation.Title;
				if (ListLocUsed.Items.ContainsKey(key))
				{
					ListLocUsed.Items[key].Text = clsLocation.Title;
				}
				if (ListLocAll.Items.ContainsKey(key))
				{
					ListLocAll.Items[key].Text = clsLocation.Title;
				}
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = ListScenes.Items.GetEnumerator();
					while (enumerator.MoveNext())
					{
						ListViewItem oItem = (ListViewItem)enumerator.Current;
						clsScene clsScene = cProject.get_SceneByID(Conversions.ToInteger(oItem.Tag));
						if (clsScene.ContainsLocID(ID))
						{
							UpdateListItemFromScene(ref oItem, clsScene.ID);
						}
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
				if (TabControlMain.SelectedTab == TabProjectLoc)
				{
					FillProjectLocList();
				}
				if (Conversions.ToInteger(txtLocDesc.Tag) == ID)
				{
					FillLocDescText(ID);
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void SetUserInterfaceFontSizeToolStripMenuItem_Click(object sender, EventArgs e)
		{
			string text = "";
			text = Interaction.InputBox("Enter the font size (8-16, or -1 for default)", "", Conversions.ToString(clsShared.cSettings.sGet("UIFontSize", Font.Size)));
			try
			{
				if (Operators.CompareString(text, "", TextCompare: false) != 0)
				{
					if (Conversions.ToShort(text) == -1)
					{
						clsShared.cSettings.sSet("UIFontSize", modVariables.DefaultUIFont.Size);
						clsShared.cFormFont.SetFormFont(this, clsShared.cSettings.sGet("FormFont", modVariables.DefaultUIFont.Name), modVariables.DefaultUIFont.Size);
					}
					else if ((Conversions.ToShort(text) >= 8) & (Conversions.ToShort(text) <= 16))
					{
						clsShared.cSettings.sSet("UIFontSize", Conversions.ToShort(text));
						clsShared.cFormFont.SetFormFont(this, clsShared.cSettings.sGet("FormFont", modVariables.DefaultUIFont.Name), clsShared.cSettings.sGet("UIFontSize", modVariables.DefaultUIFont.Size));
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void tssVersion_Click(object sender, EventArgs e)
		{
			CheckForUpdate(SuppressForm: false, Beta: false);
		}

		public void StoryBoard_ClosedForm()
		{
			DisposeOfStoryBoard();
		}

		private void ctxToggleUsed_Click(object sender, EventArgs e)
		{
			IEnumerator enumerator = default(IEnumerator);
			try
			{
				enumerator = ListScenes.SelectedItems.GetEnumerator();
				while (enumerator.MoveNext())
				{
					ListViewItem listViewItem = (ListViewItem)enumerator.Current;
					try
					{
						int num = Conversions.ToInteger(listViewItem.Tag);
						if (num > 0)
						{
							clsScene clsScene = cProject.get_SceneByID(num);
							clsScene.Unused = !clsScene.Unused;
							clsScene.TriggerSaveEvent();
						}
					}
					catch (Exception ex)
					{
						ProjectData.SetProjectError(ex);
						Exception ex2 = ex;
						clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
						ProjectData.ClearProjectError();
					}
				}
			}
			finally
			{
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
			}
		}

		private void tsmExportChar_Click(object sender, EventArgs e)
		{
			string text = cProject.ExportFolder();
			clsShared.cFile.MkMissingDir(text);
			string filename = Path.Combine(text, "ExportedCharacters.xml");
			cProject.ExportCharacters(filename);
		}

		private void tsmExportLocations_Click(object sender, EventArgs e)
		{
			string text = cProject.ExportFolder();
			clsShared.cFile.MkMissingDir(text);
			string filename = Path.Combine(text, "ExportedLocations.xml");
			cProject.ExportLocations(filename);
		}

		private void tsmExportItems_Click(object sender, EventArgs e)
		{
			string text = cProject.ExportFolder();
			clsShared.cFile.MkMissingDir(text);
			string filename = Path.Combine(text, "ExportedItems.xml");
			cProject.ExportItems(filename);
		}

		private void ImportCharactersToolStripMenuItem_Click(object sender, EventArgs e)
		{
			string text = clsShared.cFileSel.AskForFilename("Select the Characters file you want to import", cProject.ExportFolder(), "*.xml");
			if (Operators.CompareString(text, "", TextCompare: false) != 0)
			{
				cProject.ImportCharacters(text);
			}
		}

		private void ImportLocationsToolStripMenuItem_Click(object sender, EventArgs e)
		{
			string text = clsShared.cFileSel.AskForFilename("Select the Locations file you want to import", cProject.ExportFolder(), "*.xml");
			if (Operators.CompareString(text, "", TextCompare: false) != 0)
			{
				cProject.ImportLocations(text);
			}
		}

		private void ImportItemsToolStripMenuItem_Click(object sender, EventArgs e)
		{
			string text = clsShared.cFileSel.AskForFilename("Select the Items file you want to import", cProject.ExportFolder(), "*.xml");
			if (Operators.CompareString(text, "", TextCompare: false) != 0)
			{
				cProject.ImportItems(text);
			}
		}

		private void mnuSetStatus_DropDownOpening(object sender, EventArgs e)
		{
			try
			{
				int num = mvarSelectedSceneID;
				if (num > 0)
				{
					int status = cProject.get_SceneByID(num).Status;
					IEnumerator enumerator = default(IEnumerator);
					try
					{
						enumerator = mnuSetStatus.DropDownItems.GetEnumerator();
						while (enumerator.MoveNext())
						{
							ToolStripMenuItem toolStripMenuItem = (ToolStripMenuItem)enumerator.Current;
							if (status == Conversions.ToInteger(toolStripMenuItem.Tag))
							{
								toolStripMenuItem.Checked = true;
							}
							else
							{
								toolStripMenuItem.Checked = false;
							}
						}
					}
					finally
					{
						if (enumerator is IDisposable)
						{
							(enumerator as IDisposable).Dispose();
						}
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void SceneTitlesNotesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				clsPrintSceneNotes clsPrintSceneNotes = new clsPrintSceneNotes();
				clsPrintSceneNotes.PrintProgress += PrintProgress;
				clsPrintSceneNotes.PrintSceneNotes(cProject);
				clsPrintSceneNotes.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListLocUsed_SelectedIndexChanged(object sender, EventArgs e)
		{
		}

		private void DeleteToolStripMenuItem_Click(object sender, EventArgs e)
		{
			DeleteSelectedNotes();
		}

		private void ConfigureFTPSitesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			cUploader.ShowMainForm();
			FillFTPDropDowns();
		}

		private void FillFTPDropDowns()
		{
			try
			{
				BackupToFTPToolStripMenuItem.DropDownItems.Clear();
				Collection collection = cUploader.FTPSites();
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = collection.GetEnumerator();
					while (enumerator.MoveNext())
					{
						clsSite clsSite = (clsSite)enumerator.Current;
						ToolStripMenuItem toolStripMenuItem = new ToolStripMenuItem();
						toolStripMenuItem.Text = clsSite.Name;
						toolStripMenuItem.Tag = clsSite.Name;
						BackupToFTPToolStripMenuItem.DropDownItems.Add(toolStripMenuItem);
						toolStripMenuItem.Click += BackupToFTP;
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void BackupToFTP(object sender, EventArgs e)
		{
			try
			{
				string text = Conversions.ToString(((ToolStripMenuItem)sender).Tag);
				if (cProject.NotBlank())
				{
					SaveProject(CriticalSave: false);
				}
				clsShared.cSubs.BusyMouse();
				if (cProject.BackupProject(WithSceneContent: true))
				{
					string lastFullBackupFilename = cProject.LastFullBackupFilename;
					if (cUploader.UploadFile(text, lastFullBackupFilename, AsciiUpload: false))
					{
						clsShared.cLang.TransMsgBox("@1@ successfully uploaded to FTP site @2@", MsgBoxStyle.OkOnly, "", lastFullBackupFilename, text);
					}
					else
					{
						clsShared.cLang.TransMsgBox("Upload to @1@ failed.", MsgBoxStyle.Exclamation, "", text);
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListCharAll_SelectedIndexChanged(object sender, EventArgs e)
		{
		}

		private void ctxChapters_Opening(object sender, CancelEventArgs e)
		{
			int num = SelectedChapterID();
			ctxChapNew.Enabled = false;
			ctxChapEdit.Enabled = false;
			ctxChapToggleType.Enabled = false;
			ctxChapToggleUsed.Enabled = false;
			ctxChapMarkEnd.Enabled = false;
			ctxChapMarkMiddle.Enabled = false;
			if (!cProject.IsEmpty)
			{
				ctxChapNew.Enabled = true;
			}
			if (num > 0)
			{
				ctxChapEdit.Enabled = true;
				ctxChapToggleType.Enabled = true;
				ctxChapToggleUsed.Enabled = true;
				ctxChapMarkEnd.Enabled = true;
				ctxChapMarkMiddle.Enabled = true;
			}
		}

		private void OpenRTFWithDefaultEditorToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				int num = mvarSelectedSceneID;
				string text = "";
				if (num > 0)
				{
					clsScene clsScene = cProject.get_SceneByID(num);
					if (clsScene.Locked)
					{
						clsShared.cLang.TransMsgBox("Scene is already open in a yWriter editor.");
					}
					else if (clsScene.EditingExternal)
					{
						clsShared.cLang.TransMsgBox("Scene is already open in an external editor.");
					}
					else
					{
						clsScene.MarkExternalEditing();
						text = Path.Combine(yW5Lib.modSubs.RTFPathV5(cProject.ProjectPath()), clsScene.RTFFilename);
						clsShared.cFile.RunFile(text);
						LockMainScreenSceneEdits();
						UpdateSceneList(num);
						if (!clsShared.cSettings.sGet("ShownExternalWarning", DefaultIfUnknown: false))
						{
							clsShared.cLang.TransMsgBox("External Scene Editing is NOT RECOMMENDED.@1@It's easy to lose data - e.g. by clicking 'Finished with external editor' when you haven't.@1@You must right-click the scene and click 'Finished with External Editor' to reload the scene AFTER you close the external RTF editor", MsgBoxStyle.Exclamation, "", "\r\n");
							clsShared.cSettings.sSet("ShownExternalWarning", true);
						}
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void FinishedWithExternalEditorToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				int num = mvarSelectedSceneID;
				if (num > 0)
				{
					clsScene clsScene = cProject.get_SceneByID(num);
					if (clsScene.FileIsClosed())
					{
						clsScene.MarkNotExternalEditing();
						clsScene.LoadRTFV5(cProject.ProjectPath());
						clsScene.ForceWordcount();
						clsScene.TriggerSaveEvent();
					}
					else
					{
						Interaction.MsgBox("The scene file is still open. Please ensure you close the file in your external editor before you try again.");
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void mnuScene_DropDownOpening(object sender, EventArgs e)
		{
			clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
			ToolStripMenuItem Menu = mnuScene;
			cMenuSubs.DisableDropdownItems(ref Menu);
			mnuScene = Menu;
			try
			{
				if (SelectedChapterID() > 0)
				{
					mnuAddScene.Enabled = true;
					mnuAddMultiScenes.Enabled = true;
				}
				if (cProject.SceneCount > 0)
				{
					CopyFirstLineToSceneTitleSelectedScenesToolStripMenuItem.Enabled = true;
					tsmSceneReportsToolStripMenuItem.Enabled = true;
					mnuPrintScene.Enabled = true;
					mnuPrintSceneCards.Enabled = true;
					if (cProject.V6File)
					{
						DeleteOrphanScenesToolStripMenuItem.Visible = false;
					}
					else
					{
						DeleteOrphanScenesToolStripMenuItem.Visible = true;
						DeleteOrphanScenesToolStripMenuItem.Enabled = true;
					}
					PrintsScenesPerTagToolStripMenuItem.Enabled = true;
					mnuPrintSceneNotes.Enabled = true;
					RemoveFormattingFromAllScenesToolStripMenuItem.Enabled = true;
					PrintSceneListToolStripMenuItem.Enabled = true;
				}
				if (ListScenes.Items.Count > 0)
				{
					RenumberScenesToolStripMenuItem.Enabled = true;
				}
				int num = mvarSelectedSceneID;
				if (num > 0 && (!Locked(num) & !cProject.get_SceneByID(num).EditingExternal))
				{
					mnuRemoveScene.Enabled = true;
					mnuEditScene.Enabled = true;
					mnuSetAllSceneFont.Enabled = true;
					mnuSetStatus.Enabled = true;
					mnuUsedUnused.Enabled = true;
					DeleteDuplicateScenesToolStripMenuItem.Enabled = true;
					if (ListScenes.SelectedItems.Count > 1)
					{
						CombineSelectedScenesToolStripMenuItem.Enabled = true;
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void mnuPrint_DropDownOpening(object sender, EventArgs e)
		{
			clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
			ToolStripMenuItem Menu = mnuPrint;
			cMenuSubs.DisableDropdownItems(ref Menu);
			mnuPrint = Menu;
			OneDayWritingWorksheetToolStripMenuItem.Enabled = true;
			if (cProject != null)
			{
				try
				{
					if (cProject.WordTarget > 0 && cProject.WordTargetEndDate.Day > 0)
					{
						if (cProject.WordTargetStartDate.Day > 0)
						{
							mnuDailyWritingTargetToolStripMenuItem.Enabled = true;
							mnuDailyWritingTargetToolStripMenuItem.ToolTipText = "";
						}
						else
						{
							mnuDailyWritingTargetToolStripMenuItem.ToolTipText = "Please click Tools - Daily Word Target to set up this item.";
						}
					}
					if (cProject.ChapterCount > 0)
					{
						SynopsisToolStripMenuItem.Enabled = true;
						SetReportWidthToolStripMenuItem.Enabled = true;
						if (cProject.SceneCount > 0)
						{
							mnuPrintWorkSched.Enabled = true;
						}
					}
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void LoadPreviousProjectOnStartupToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (LoadPreviousProjectOnStartupToolStripMenuItem.Checked)
			{
				LoadPreviousProjectOnStartupToolStripMenuItem.Checked = false;
			}
			else
			{
				LoadPreviousProjectOnStartupToolStripMenuItem.Checked = true;
			}
			clsShared.cSettings.sSet("LoadPreviousProjectOnStartup", LoadPreviousProjectOnStartupToolStripMenuItem.Checked);
		}

		private void DailyBackupToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (DailyBackupToolStripMenuItem.Checked)
			{
				DailyBackupToolStripMenuItem.Checked = false;
			}
			else
			{
				DailyBackupToolStripMenuItem.Checked = true;
			}
			clsShared.cSettings.sSet("AlwaysFullBackup", DailyBackupToolStripMenuItem.Checked);
		}

		private void CloseSceneListIfOpen()
		{
			if (ExternalSceneList != null)
			{
				ExternalSceneList.Hide();
				ExternalSceneList = null;
			}
		}

		private void ExportSelectedChaptersToolStripMenuItem_Click(object sender, EventArgs e)
		{
		}

		private void mnuChapters_DropDownOpening(object sender, EventArgs e)
		{
			clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
			ToolStripMenuItem Menu = mnuChapters;
			cMenuSubs.DisableDropdownItems(ref Menu);
			mnuChapters = Menu;
			SetupBooksAndPartsToolStripMenuItem.Visible = false;
			if (SelectedChapterID() > 0)
			{
				tsmExportSingleChapter.Enabled = true;
				ExportChapterToolStripMenuItem.Enabled = true;
				ImportChapterToolStripMenuItem.Enabled = true;
				mnuEditChapter.Enabled = true;
				ToggleChapterOtherToolStripMenuItem.Enabled = true;
				mnuMarkChaptersUnused.Enabled = true;
				mnuMarkEndBeginning.Enabled = true;
				mnuMarkEndMiddle.Enabled = true;
				mnuRemoveChapter.Enabled = true;
				mnuPrintChapterNotes.Enabled = true;
				mnuPrintSelectedChapters.Enabled = true;
			}
			if (ListChapters.SelectedItems.Count > 1)
			{
				CombineSelectedChaptersToolStripMenuItem.Enabled = true;
			}
			if (ListChapters.Items.Count > 0)
			{
				tsmChapterReportsToolStripMenuItem.Enabled = true;
				mnuRenumber.Enabled = true;
			}
			if (!cProject.IsEmpty)
			{
				mnuChapterNew.Enabled = true;
				mnuChapterMultiNew.Enabled = true;
				SetupBooksAndPartsToolStripMenuItem.Enabled = true;
			}
		}

		private void mnuScene_Click(object sender, EventArgs e)
		{
		}

		private void mnuSearch_DropDownOpened(object sender, EventArgs e)
		{
			if (ListChapters.Items.Count == 0)
			{
				clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
				ToolStripMenuItem Menu = mnuSearch;
				cMenuSubs.DisableDropdownItems(ref Menu);
				mnuSearch = Menu;
			}
			else
			{
				clsMenuSubs cMenuSubs2 = clsShared.cMenuSubs;
				ToolStripMenuItem Menu = mnuSearch;
				cMenuSubs2.EnableDropdownItems(ref Menu);
				mnuSearch = Menu;
			}
		}

		private void mnuChapters_Click(object sender, EventArgs e)
		{
		}

		private void mnuChar_Click(object sender, EventArgs e)
		{
		}

		private void mnuChar_DropDownOpening(object sender, EventArgs e)
		{
			clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
			ToolStripMenuItem Menu = mnuChar;
			cMenuSubs.DisableDropdownItems(ref Menu);
			mnuChar = Menu;
			if (!cProject.IsEmpty)
			{
				mnuEditChar.Enabled = true;
				AddNewCharToolStripMenuItem.Enabled = true;
				if (cProject.SceneCount > 0)
				{
					mnuWordsPerCharacter.Enabled = true;
					mnuScenesPerCharacter.Enabled = true;
					PrintScenesPerCharacterToolStripMenuItem.Enabled = true;
				}
				if (cProject.ChapterCount > 0)
				{
					mnuPrintChapterNotes.Enabled = true;
				}
				if (cProject.CharCount > 0)
				{
					tsmCharReportsToolStripMenuItem.Enabled = true;
					mnuPrintChar.Enabled = true;
					AutomaticallyAddCharactersToScenesToolStripMenuItem.Enabled = true;
					PrintCharactersPerTagToolStripMenuItem.Enabled = true;
				}
				if (mvarSelectedSceneID > 0)
				{
					mnuAddCharToScene.Enabled = true;
				}
			}
		}

		private void mnuLocations_Click(object sender, EventArgs e)
		{
		}

		private void mnuLocations_DropDownOpening(object sender, EventArgs e)
		{
			clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
			ToolStripMenuItem Menu = mnuLocations;
			cMenuSubs.DisableDropdownItems(ref Menu);
			mnuLocations = Menu;
			if (!cProject.IsEmpty)
			{
				AddNewLocToolStripMenuItem.Enabled = true;
				mnuAddLocation.Enabled = true;
				if (cProject.LocationCount > 0)
				{
					tsmLocReportsToolStripMenuItem.Enabled = true;
					mnuPrintLocationList.Enabled = true;
					PrintScenesPerLocationToolStripMenuItem.Enabled = true;
					AutomaticallyAddLocationsToScenesToolStripMenuItem.Enabled = true;
					PrintLocationsPerTagToolStripMenuItem.Enabled = true;
				}
				if (mvarSelectedSceneID > 0)
				{
					mnuAddLocToCurrentScene.Enabled = true;
				}
			}
		}

		private void mnuItems_Click(object sender, EventArgs e)
		{
		}

		private void mnuItems_DropDownOpening(object sender, EventArgs e)
		{
			clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
			ToolStripMenuItem Menu = mnuItems;
			cMenuSubs.DisableDropdownItems(ref Menu);
			mnuItems = Menu;
			if (!cProject.IsEmpty)
			{
				mnuAddItem.Enabled = true;
				AddNewItemToolStripMenuItem.Enabled = true;
				if (cProject.ItemCount > 0)
				{
					tsmItemReportsToolStripMenuItem.Enabled = true;
					mnuPrintItemList.Enabled = true;
					PrintScenesPerItemToolStripMenuItem.Enabled = true;
					AutomaticallyAddItemsToScenesToolStripMenuItem.Enabled = true;
					PrintItemsPerTagToolStripMenuItem.Enabled = true;
				}
				if (mvarSelectedSceneID > 0)
				{
					mnuAddItemToCurrentScene.Enabled = true;
				}
			}
		}

		private void mnuProject_Click(object sender, EventArgs e)
		{
		}

		private void mnuProject_DropDownOpening(object sender, EventArgs e)
		{
			clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
			ToolStripMenuItem Menu = mnuProject;
			cMenuSubs.DisableDropdownItems(ref Menu);
			mnuProject = Menu;
			if (cProject.Saving || cProject.Loading)
			{
				return;
			}
			mnuNewProj.Enabled = true;
			mnuProjectGen.Enabled = true;
			mnuLoadProj.Enabled = true;
			mnuOpenRecent.Enabled = true;
			mnuConfirmExit.Enabled = true;
			LoadPreviousProjectOnStartupToolStripMenuItem.Enabled = true;
			ImportFileToolStripMenuItem.Enabled = true;
			Version6FilesToolStripMenuItem.Enabled = true;
			CreateEmptyV6.Enabled = true;
			ImportWIPToV6.Enabled = true;
			if (!cProject.IsEmpty)
			{
				if (!cProject.V6File)
				{
					SaveAsYw6ProjectToolStripMenuItem.Enabled = true;
				}
				ToEbookToolStripMenuItem.Enabled = true;
				OpenProjectFolderToolStripMenuItem.Enabled = true;
				ImportDataToolStripMenuItem.Enabled = true;
				mnuSaveAs.Enabled = true;
				mnuExportProj.Enabled = true;
				mnuSaveProj.Enabled = true;
				mnuCloseProject.Enabled = true;
				tsbExportToLaTeX.Enabled = true;
				mnuSettings.Enabled = true;
				mnuExportData.Enabled = true;
				mnuPrintProject.Enabled = true;
				ApplyOutlineToolStripMenuItem.Enabled = true;
				if (ListChapters.SelectedItems.Count > 0)
				{
					mnuExportSelectedChapters.Enabled = true;
				}
				if (ListScenes.SelectedItems.Count > 0)
				{
					ExportSelectedScenesToolStripMenuItem.Enabled = true;
				}
			}
		}

		private void mnuTools_Click(object sender, EventArgs e)
		{
		}

		private void mnuTools_DropDownOpening(object sender, EventArgs e)
		{
			clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
			ToolStripMenuItem Menu = mnuTools;
			cMenuSubs.DisableDropdownItems(ref Menu);
			mnuTools = Menu;
			mnuSceneGrid.Visible = false;
			if (clsShared.cSubs.InIDE())
			{
				mnuSceneGrid.Visible = true;
			}
			mnuDebugMenu.Enabled = true;
			mnuUIFont.Enabled = true;
			mnuUIFontSize.Enabled = true;
			mnuCheckVersion.Enabled = true;
			CheckForBETAVersionToolStripMenuItem.Enabled = true;
			GlobalVariablesToolStripMenuItem.Enabled = true;
			mnuStoryboard.ToolTipText = "Your project must contain at least one scene and one character";
			if (cProject.IsEmpty)
			{
				mnuCreateDebug.Enabled = false;
				return;
			}
			tsmDailyLog.Enabled = true;
			mnuBackupMenu.Enabled = true;
			mnuCreateDebug.Enabled = true;
			if (!modVariables.EnableCollab)
			{
				CollaborationToolStripMenuItem.Visible = false;
				sepCollab.Visible = false;
			}
			else if (cProject.Collab)
			{
				CollaborationToolStripMenuItem.Enabled = true;
			}
			ProjectVariablesToolStripMenuItem.Enabled = true;
			if (cProject.SceneCount > 0)
			{
				ForceWordcountToolStripMenuItem.Enabled = true;
				mnuChart.Enabled = true;
				mnuSceneList.Enabled = true;
				mnuSceneGrid.Enabled = true;
				mnuWordUsageCount.Enabled = true;
				if (cProject.CharCount > 0)
				{
					mnuStoryboard.Enabled = true;
					mnuStoryboard.ToolTipText = "";
				}
			}
			if (cProject.ChapterCount > 0)
			{
				mnuWordTarget.Enabled = true;
			}
		}

		private void FillCharItemLocLists()
		{
			try
			{
				clsFillList clsFillList = cFill;
				clsProject clsProject = cProject;
				ListView aList = ListCharAll;
				clsFillList.FillAllCharList(clsProject, ref aList, MajorOnly: false);
				ListCharAll = aList;
				clsFillList clsFillList2 = cFill;
				clsProject clsProject2 = cProject;
				aList = ListItemsAll;
				clsFillList2.FillAllItems(clsProject2, ref aList);
				ListItemsAll = aList;
				clsFillList clsFillList3 = cFill;
				clsProject clsProject3 = cProject;
				aList = ListLocAll;
				clsFillList3.FillAllLocations(clsProject3, ref aList);
				ListLocAll = aList;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void MainMenu1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
		{
		}

		private void mnuPrintChapterNotes_Click(object sender, EventArgs e)
		{
			try
			{
				clsPrintChapterNotes clsPrintChapterNotes = new clsPrintChapterNotes();
				clsPrintChapterNotes.PrintProgress += PrintProgress;
				clsPrintChapterNotes.PrintChapterNotes(cProject);
				clsPrintChapterNotes.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ListCharUsed_SelectedIndexChanged(object sender, EventArgs e)
		{
		}

		private void TabControlScene_SelectedIndexChanged(object sender, EventArgs e)
		{
		}

		private void DailyWritingTargetToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				clsPrintDailyWritingTarget clsPrintDailyWritingTarget = new clsPrintDailyWritingTarget();
				clsPrintDailyWritingTarget.PrintProgress += PrintProgress;
				clsPrintDailyWritingTarget.PrintDailyWritingTarget(cProject);
				clsPrintDailyWritingTarget.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void OneDayWritingWorksheetToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				clsPrintOneDayWorksheet clsPrintOneDayWorksheet = new clsPrintOneDayWorksheet();
				clsPrintOneDayWorksheet.PrintProgress += PrintProgress;
				clsPrintOneDayWorksheet.PrintOneDayWorksheet();
				clsPrintOneDayWorksheet.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void CreateTemplatetxtFileToolStripMenuItem_Click(object sender, EventArgs e)
		{
			CreateLanguageTemplateFile();
			clsShared.cFile.RunFile(clsShared.cLang.LanguagesFolder);
		}

		private void RewriteAllLanguageFilesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			CreateLanguageTemplateFile();
			clsShared.cLang.ForceConformLanguageFiles();
			clsShared.cFile.RunFile(clsShared.cLang.LanguagesFolder);
		}

		private void CreateLanguageTemplateFile()
		{
			try
			{
				clsShared.cFile.MkMissingDir(Path.Combine(MyProject.Application.Info.DirectoryPath, "Languages"));
				string templateFilename = Path.Combine(Path.Combine(MyProject.Application.Info.DirectoryPath, "Languages"), "Template.txt");
				clsLang cLang = clsShared.cLang;
				Form F = this;
				cLang.FormToTemplateFile(ref F, templateFilename, ClearFirst: true);
				clsLang cLang2 = clsShared.cLang;
				F = new frmBackupViewer(ref cProject);
				cLang2.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang3 = clsShared.cLang;
				F = new frmChart(cProject);
				cLang3.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang4 = clsShared.cLang;
				F = new frmEditChapter(ref cProject, Conversions.ToInteger("1"));
				cLang4.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang5 = clsShared.cLang;
				F = new frmEditCharacter();
				cLang5.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang6 = clsShared.cLang;
				F = new frmEditItem();
				cLang6.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang7 = clsShared.cLang;
				F = new frmEditLocation();
				cLang7.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang8 = clsShared.cLang;
				F = new frmEditor(ref cProject, 0);
				cLang8.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang9 = clsShared.cLang;
				F = new frmEditorSettings();
				cLang9.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang10 = clsShared.cLang;
				F = new frmFillList();
				cLang10.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang11 = clsShared.cLang;
				F = new frmGlobalReplace(ref cProject);
				cLang11.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang12 = clsShared.cLang;
				F = new frmHighlightColours();
				cLang12.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang13 = clsShared.cLang;
				F = new frmImportWIP();
				cLang13.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang14 = clsShared.cLang;
				F = new frmList(ref cProject, eRecord.eCharacter);
				cLang14.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang15 = clsShared.cLang;
				F = new frmStoryBoard(ref cProject);
				cLang15.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang16 = clsShared.cLang;
				F = new frmPickChapters(ref cProject);
				cLang16.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang17 = clsShared.cLang;
				F = new frmPickFont("", "");
				cLang17.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang18 = clsShared.cLang;
				F = new frmProblemWords();
				cLang18.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang19 = clsShared.cLang;
				F = new frmProjectWizard();
				cLang19.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang20 = clsShared.cLang;
				F = new frmProjectSettings(ref cProject);
				cLang20.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang21 = clsShared.cLang;
				F = new frmSceneList(ref cProject);
				cLang21.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang22 = clsShared.cLang;
				F = new frmWordCount();
				cLang22.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsLang cLang23 = clsShared.cLang;
				F = new frmWordTarget(ref cProject);
				cLang23.FormToTemplateFile(ref F, templateFilename, ClearFirst: false);
				clsShared.cLang.SpacejockFormsToTemplate(ref clsShared.cSettings, ref clsShared.cLog, ref clsShared.cDateSubs, templateFilename);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ExportSelectedScenesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (EditorWindowsOpenWarning())
			{
				return;
			}
			SaveProject(CriticalSave: false);
			clsProject clsProject = new clsProject();
			string text = cProject.ExportFolder();
			clsShared.cFile.MkMissingDir(text);
			VBMath.Randomize(DateAndTime.Now.ToOADate());
			string text2 = Path.Combine(text, "ExportedScenes_" + Strings.Format(Conversion.Int(VBMath.Rnd() * 100f), "000") + ".ywc5");
			Collection collection = new Collection();
			Collection collection2 = new Collection();
			Collection collection3 = new Collection();
			Collection collection4 = new Collection();
			string text3 = "";
			IEnumerator enumerator = default(IEnumerator);
			try
			{
				enumerator = ListScenes.SelectedItems.GetEnumerator();
				while (enumerator.MoveNext())
				{
					ListViewItem listViewItem = (ListViewItem)enumerator.Current;
					collection.Add(RuntimeHelpers.GetObjectValue(listViewItem.Tag), Conversions.ToString(listViewItem.Tag));
				}
			}
			finally
			{
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
			}
			if (clsProject.Load(cProject.FileWithPath, IgnoreLock: true))
			{
				clsProject.FileWithPath = text2;
				clsProject.QuickSaveYWCompacted5();
				for (int i = clsProject.ChapterCount; i >= 1; i += -1)
				{
					int iD = ((clsGenericBase<clsChapter>)clsProject.Chapters).get_ByIndex(i).ID;
					clsProject.RemoveChapterOnlyByID(iD);
				}
				for (int i = clsProject.SceneCount; i >= 1; i += -1)
				{
					int iD2 = clsProject.Scenes.SceneByIndex(i).ID;
					if (!collection.Contains(Conversions.ToString(iD2)))
					{
						clsProject.RemoveSceneByID(iD2);
					}
				}
				IEnumerator enumerator2 = default(IEnumerator);
				try
				{
					enumerator2 = clsProject.Scenes.GetEnumerator();
					while (enumerator2.MoveNext())
					{
						clsScene clsScene = (clsScene)enumerator2.Current;
						int charCount = clsScene.CharCount;
						for (int i = 1; i <= charCount; i++)
						{
							text3 = Conversions.ToString(((clsSceneBase)clsScene).get_CharIDByIndex(i));
							if (!collection4.Contains(text3))
							{
								collection4.Add(text3, text3);
							}
						}
						int locationCount = clsScene.LocationCount;
						for (int i = 1; i <= locationCount; i++)
						{
							text3 = Conversions.ToString(((clsSceneBase)clsScene).get_LocationIDByIndex(i));
							if (!collection2.Contains(text3))
							{
								collection2.Add(text3, text3);
							}
						}
						int itemCount = clsScene.ItemCount;
						for (int i = 1; i <= itemCount; i++)
						{
							text3 = Conversions.ToString(((clsSceneBase)clsScene).get_ItemIDByIndex(i));
							if (!collection3.Contains(text3))
							{
								collection3.Add(text3, text3);
							}
						}
					}
				}
				finally
				{
					if (enumerator2 is IDisposable)
					{
						(enumerator2 as IDisposable).Dispose();
					}
				}
				for (int i = clsProject.CharCount; i >= 1; i += -1)
				{
					int iD2 = clsProject.Chars.CharByIndex(i).ID;
					if (!collection4.Contains(Conversions.ToString(iD2)))
					{
						clsProject.RemoveCharByID(iD2);
					}
				}
				for (int i = clsProject.LocationCount; i >= 1; i += -1)
				{
					int iD2 = clsProject.Locations.LocationByIndex(i).ID;
					if (!collection2.Contains(Conversions.ToString(iD2)))
					{
						clsProject.RemoveLocationByID(iD2);
					}
				}
				for (int i = clsProject.ItemCount; i >= 1; i += -1)
				{
					int iD2 = clsProject.Items.ItemByIndex(i).ID;
					if (!collection3.Contains(Conversions.ToString(iD2)))
					{
						clsProject.RemoveItemByID(iD2);
					}
				}
				clsProject.ClearWordLogs();
				clsProject.QuickSaveYWCompacted5();
				clsShared.cSettings.sSet("LastProjectFile", cProject.FileWithPath);
				clsShared.cSettings.sSet("LastProjectLoaded", cProject.FileWithPath);
				clsShared.cLang.TransMsgBox("Your exported scenes are contained in this file: @1@You can now import this file into another project.", MsgBoxStyle.OkOnly, "", text2 + "\r\n");
			}
			clsProject = null;
		}

		private void RefreshSceneList()
		{
			IEnumerator enumerator = default(IEnumerator);
			try
			{
				enumerator = ListScenes.Items.GetEnumerator();
				while (enumerator.MoveNext())
				{
					ListViewItem oItem = (ListViewItem)enumerator.Current;
					int scID = Conversions.ToInteger(oItem.Tag);
					UpdateListItemFromScene(ref oItem, scID);
				}
			}
			finally
			{
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
			}
		}

		private void cmdSaveGoals_Click(object sender, EventArgs e)
		{
			if (DisplayedSceneID() <= 0)
			{
				return;
			}
			int num = DisplayedSceneID();
			if (colEditors.Contains(Conversions.ToString(num)))
			{
				clsShared.cLang.TransMsgBox("This scene is already being edited. Cannot save changes.");
				return;
			}
			clsScene clsScene = cProject.get_SceneByID(num);
			if (clsScene != null)
			{
				clsScene.Goal = txtGoal.Text;
				clsScene.Conflict = txtConflict.Text;
				clsScene.Outcome = txtOutcome.Text;
				clsScene.Save();
			}
		}

		private void cmdSaveSceneNotes_Click(object sender, EventArgs e)
		{
			if (DisplayedSceneID() <= 0)
			{
				return;
			}
			int num = DisplayedSceneID();
			if (colEditors.Contains(Conversions.ToString(num)))
			{
				clsShared.cLang.TransMsgBox("This scene is already being edited. Cannot save changes.");
				return;
			}
			clsScene clsScene = cProject.get_SceneByID(num);
			if (clsScene != null)
			{
				clsScene.Notes = txtSceneNotes.Text;
				clsScene.Save();
			}
		}

		private void cmdSaveSceneDesc_Click(object sender, EventArgs e)
		{
			if (DisplayedSceneID() <= 0)
			{
				return;
			}
			int num = DisplayedSceneID();
			if (colEditors.Contains(Conversions.ToString(num)))
			{
				clsShared.cLang.TransMsgBox("This scene is already being edited. Cannot save changes.");
				return;
			}
			clsScene clsScene = cProject.get_SceneByID(num);
			if (clsScene != null)
			{
				clsScene.DescText = txtDesc.Text;
				clsScene.Save();
			}
		}

		private int DisplayedSceneID()
		{
			if (ListScenes.Items.Count == 0)
			{
				return 0;
			}
			return mvarDisplayedSceneID;
		}

		private void tabSceneNotes_Click(object sender, EventArgs e)
		{
		}

		private void LockMainScreenSceneEdits()
		{
			txtGoal.ReadOnly = true;
			txtConflict.ReadOnly = true;
			txtOutcome.ReadOnly = true;
			txtSceneNotes.ReadOnly = true;
			txtDesc.ReadOnly = true;
			txtSceneTitle.ReadOnly = true;
			cmdSaveGoals.Enabled = false;
			cmdSaveSceneDesc.Enabled = false;
			cmdSaveSceneNotes.Enabled = false;
		}

		private void EnableMainScreenSceneEdits()
		{
			txtGoal.ReadOnly = false;
			txtConflict.ReadOnly = false;
			txtOutcome.ReadOnly = false;
			txtSceneNotes.ReadOnly = false;
			txtDesc.ReadOnly = false;
			txtSceneTitle.ReadOnly = false;
			cmdSaveGoals.Enabled = true;
			cmdSaveSceneDesc.Enabled = true;
			cmdSaveSceneNotes.Enabled = true;
		}

		private void mnuLocalise_Click(object sender, EventArgs e)
		{
		}

		private void ScenesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				int num = SelectedChapterID();
				if (num == 0)
				{
					clsShared.cLang.TransMsgBox("Select a chapter first");
				}
				else
				{
					clsShared.cLang.TransMsgBox("Select one or more txt/rtf files, and yWriter will add them to the selected chapter as scenes.@1@(Note that the original files will be copied into the project, and left untouched.)", MsgBoxStyle.OkOnly, "", "\r\n");
					string TextString = "";
					string text = "";
					Collection files = clsShared.cFileSel.GetFiles(cProject.ProjectPath(), "Select one or more txt/rtf files", "*.TXT;*.RTF");
					if (files.Count > 0)
					{
						int count = files.Count;
						for (int i = 1; i <= count; i++)
						{
							text = Conversions.ToString(files[i]);
							if (Operators.CompareString(text, "", TextCompare: false) != 0)
							{
								clsShared.cFile.ReadTextFile(text, ref TextString);
								clsScene Scene = new clsScene();
								Scene.V6 = cProject.V6File;
								Scene.Title = clsShared.cFile.FileOnly(clsShared.cFile.FileWithoutExt(text));
								Scene.TextRTF = TextString;
								cProject.AddSceneToProjectAndChapter(ref Scene, num);
								Scene.Save();
							}
						}
						cProject.UpdateWCLog();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void AppendYWriter5ProjectToolStripMenuItem_Click(object sender, EventArgs e)
		{
			//Discarded unreachable code: IL_0a76, IL_0a90, IL_0a9e, IL_0aae, IL_0d28, IL_0d2a, IL_0d3e, IL_0d60
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (cProject.IsEmpty)
				{
					num2 = 3;
					clsShared.cLang.TransMsgBox("No project loaded - cannot append to it.");
				}
				else
				{
					num2 = 5;
					string text = "";
					num2 = 6;
					text = clsShared.cFileSel.GetFile(clsShared.cSpecialFolders.MyDocsFolder, "*.yw5;*.ywc5;*.yw6");
					num2 = 7;
					if (Operators.CompareString(text, "", TextCompare: false) != 0)
					{
						num2 = 9;
						if (Operators.CompareString(clsShared.cFile.AddSlashIfMissing(clsShared.cFile.PathOnly(text)), clsShared.cFile.AddSlashIfMissing(cProject.ProjectPath()), TextCompare: false) == 0)
						{
							num2 = 10;
							clsShared.cLang.TransMsgBox("You can't add a project to itself!");
						}
						else
						{
							num2 = 12;
							clsProject clsProject = new clsProject();
							num2 = 13;
							clsProject.Load(text, IgnoreLock: true);
							num2 = 14;
							Collection collection = new Collection();
							num2 = 15;
							Collection collection2 = new Collection();
							num2 = 16;
							Collection collection3 = new Collection();
							num2 = 17;
							Collection collection4 = new Collection();
							num2 = 18;
							Collection collection5 = new Collection();
							num2 = 19;
							clsShared.cSubs.BusyMouse();
							num2 = 20;
							IEnumerator enumerator = clsProject.Chars.GetEnumerator();
							while (enumerator.MoveNext())
							{
								clsCharacter cChr = (clsCharacter)enumerator.Current;
								num2 = 21;
								bool flag = false;
								num2 = 22;
								if (cProject.Chars.IDUsed(cChr.ID))
								{
									num2 = 23;
									if (Operators.CompareString(cProject.get_CharByID(cChr.ID).Title, cChr.Title, TextCompare: false) == 0)
									{
										num2 = 24;
										flag = true;
									}
								}
								num2 = 25;
								if (!flag)
								{
									num2 = 26;
									clsCharacter clsCharacter = new clsCharacter();
									num2 = 27;
									clsCharacter.ID = cChr.ID;
									num2 = 28;
									clsCharacter.Title = cChr.Title;
									num2 = 29;
									cProject.AddChar(ref cChr);
									num2 = 30;
									int iD = cChr.ID;
									num2 = 31;
									clsCharacter.Tags = Conversions.ToString(iD);
									num2 = 32;
									collection.Add(clsCharacter, Conversions.ToString(iD));
								}
								num2 = 33;
							}
							num2 = 34;
							if (enumerator is IDisposable)
							{
								(enumerator as IDisposable).Dispose();
							}
							num2 = 35;
							IEnumerator enumerator2 = clsProject.Items.GetEnumerator();
							while (enumerator2.MoveNext())
							{
								clsItem Item = (clsItem)enumerator2.Current;
								num2 = 36;
								bool flag = false;
								num2 = 37;
								if (cProject.Items.IDUsed(Item.ID))
								{
									num2 = 38;
									if (Operators.CompareString(cProject.get_ItemByID(Item.ID).Title, Item.Title, TextCompare: false) == 0)
									{
										num2 = 39;
										flag = true;
									}
								}
								num2 = 40;
								if (!flag)
								{
									num2 = 41;
									clsItem clsItem = new clsItem();
									num2 = 42;
									clsItem.ID = Item.ID;
									num2 = 43;
									clsItem.Title = Item.Title;
									num2 = 44;
									cProject.AddItem(ref Item);
									num2 = 45;
									int iD = Item.ID;
									num2 = 46;
									clsItem.Tags = Conversions.ToString(iD);
									num2 = 47;
									collection2.Add(clsItem, Conversions.ToString(iD));
								}
								num2 = 48;
							}
							num2 = 49;
							if (enumerator2 is IDisposable)
							{
								(enumerator2 as IDisposable).Dispose();
							}
							num2 = 50;
							IEnumerator enumerator3 = clsProject.Locations.GetEnumerator();
							while (enumerator3.MoveNext())
							{
								clsLocation Location = (clsLocation)enumerator3.Current;
								num2 = 51;
								bool flag = false;
								num2 = 52;
								if (cProject.Locations.IDUsed(Location.ID))
								{
									num2 = 53;
									if (Operators.CompareString(cProject.get_LocationByID(Location.ID).Title, Location.Title, TextCompare: false) == 0)
									{
										num2 = 54;
										flag = true;
									}
								}
								num2 = 55;
								if (!flag)
								{
									num2 = 56;
									clsLocation clsLocation = new clsLocation();
									num2 = 57;
									clsLocation.ID = Location.ID;
									num2 = 58;
									clsLocation.Title = Location.Title;
									num2 = 59;
									cProject.AddLocation(ref Location);
									num2 = 60;
									int iD = Location.ID;
									num2 = 61;
									clsLocation.Tags = Conversions.ToString(iD);
									num2 = 62;
									collection3.Add(clsLocation, Conversions.ToString(iD));
								}
								num2 = 63;
							}
							num2 = 64;
							if (enumerator3 is IDisposable)
							{
								(enumerator3 as IDisposable).Dispose();
							}
							num2 = 65;
							IEnumerator enumerator4 = clsProject.Chapters.GetEnumerator();
							while (enumerator4.MoveNext())
							{
								clsChapter cChapter = (clsChapter)enumerator4.Current;
								num2 = 66;
								clsChapter clsChapter = new clsChapter();
								num2 = 67;
								clsChapter.ID = cChapter.ID;
								num2 = 68;
								clsChapter.Title = cChapter.Title;
								num2 = 69;
								cChapter.ID = 0;
								num2 = 70;
								cProject.AddChapter(ref cChapter);
								num2 = 71;
								int iD = cChapter.ID;
								num2 = 72;
								clsChapter.Tags = Conversions.ToString(iD);
								num2 = 73;
								collection5.Add(clsChapter);
								num2 = 74;
							}
							num2 = 75;
							if (enumerator4 is IDisposable)
							{
								(enumerator4 as IDisposable).Dispose();
							}
							num2 = 76;
							IEnumerator enumerator5 = clsProject.Scenes.GetEnumerator();
							while (enumerator5.MoveNext())
							{
								clsScene Scene = (clsScene)enumerator5.Current;
								num2 = 77;
								IEnumerator enumerator6 = collection.GetEnumerator();
								while (enumerator6.MoveNext())
								{
									clsCharacter clsCharacter = (clsCharacter)enumerator6.Current;
									num2 = 78;
									for (int i = Scene.CharCount; i >= 1; i += -1)
									{
										num2 = 79;
										if (((clsSceneBase)Scene).get_CharIDByIndex(i) == clsCharacter.ID)
										{
											num2 = 80;
											Scene.RemoveCharByID(clsCharacter.ID);
											num2 = 81;
											Scene.AddCharByID(Conversions.ToInteger(clsCharacter.Tags));
										}
										num2 = 82;
									}
									num2 = 83;
								}
								num2 = 84;
								if (enumerator6 is IDisposable)
								{
									(enumerator6 as IDisposable).Dispose();
								}
								num2 = 85;
								IEnumerator enumerator7 = collection2.GetEnumerator();
								while (enumerator7.MoveNext())
								{
									clsItem clsItem = (clsItem)enumerator7.Current;
									num2 = 86;
									for (int i = Scene.ItemCount; i >= 1; i += -1)
									{
										num2 = 87;
										if (((clsSceneBase)Scene).get_ItemIDByIndex(i) == clsItem.ID)
										{
											num2 = 88;
											Scene.RemoveItemByID(clsItem.ID);
											num2 = 89;
											Scene.AddItemByID(Conversions.ToInteger(clsItem.Tags));
										}
										num2 = 90;
									}
									num2 = 91;
								}
								num2 = 92;
								if (enumerator7 is IDisposable)
								{
									(enumerator7 as IDisposable).Dispose();
								}
								num2 = 93;
								IEnumerator enumerator8 = collection3.GetEnumerator();
								while (enumerator8.MoveNext())
								{
									clsLocation clsLocation = (clsLocation)enumerator8.Current;
									num2 = 94;
									for (int i = Scene.LocationCount; i >= 1; i += -1)
									{
										num2 = 95;
										if (((clsSceneBase)Scene).get_LocationIDByIndex(i) == clsLocation.ID)
										{
											num2 = 96;
											Scene.RemoveLocationByID(clsLocation.ID);
											num2 = 97;
											Scene.AddLocationByID(Conversions.ToInteger(clsLocation.Tags));
										}
										num2 = 98;
									}
									num2 = 99;
								}
								num2 = 100;
								if (enumerator8 is IDisposable)
								{
									(enumerator8 as IDisposable).Dispose();
								}
								num2 = 101;
								clsScene clsScene = new clsScene();
								num2 = 102;
								clsScene.V6 = cProject.V6File;
								num2 = 103;
								clsScene.ID = Scene.ID;
								num2 = 104;
								clsScene.Title = Scene.Title;
								num2 = 105;
								if (collection5.Count == 0)
								{
									num2 = 106;
									if (ListChapters.Items.Count != 0)
									{
										num2 = 108;
										if (ListChapters.FocusedItem == null)
										{
											num2 = 109;
											Scene.BelongsToChID = Conversions.ToInteger(ListChapters.Items[0].Tag);
										}
										else
										{
											num2 = 111;
											Scene.BelongsToChID = Conversions.ToInteger(ListChapters.FocusedItem.Tag);
										}
									}
								}
								else
								{
									num2 = 113;
									IEnumerator enumerator9 = collection5.GetEnumerator();
									while (enumerator9.MoveNext())
									{
										clsChapter clsChapter = (clsChapter)enumerator9.Current;
										num2 = 114;
										if (Scene.BelongsToChID == clsChapter.ID)
										{
											num2 = 115;
											Scene.BelongsToChID = Conversions.ToInteger(clsChapter.Tags);
										}
										num2 = 116;
									}
									num2 = 117;
									if (enumerator9 is IDisposable)
									{
										(enumerator9 as IDisposable).Dispose();
									}
								}
								num2 = 118;
								Scene.ID = 0;
								num2 = 119;
								cProject.AddSceneToProjectAndChapter(ref Scene, Scene.BelongsToChID);
								num2 = 120;
								if (Operators.CompareString(Scene.TextRTF, "", TextCompare: false) == 0)
								{
									num2 = 121;
									Scene.LoadRTFV5(clsProject.ProjectPath());
								}
								num2 = 122;
								Scene.ClearRTFFilename();
								num2 = 123;
								Scene.SaveRTFV5(cProject.ProjectPath());
								num2 = 124;
								int iD = Scene.ID;
								num2 = 125;
								clsScene.Tags = Conversions.ToString(iD);
								num2 = 126;
								collection4.Add(clsScene);
								num2 = 127;
							}
							num2 = 128;
							if (enumerator5 is IDisposable)
							{
								(enumerator5 as IDisposable).Dispose();
							}
							num2 = 129;
							Collection collection6 = new Collection();
							num2 = 130;
							IEnumerator enumerator10 = collection5.GetEnumerator();
							while (enumerator10.MoveNext())
							{
								clsChapter cChapter = (clsChapter)enumerator10.Current;
								num2 = 131;
								clsChapter clsChapter = cProject.get_ChapterByID(Conversions.ToInteger(cChapter.Tags));
								num2 = 132;
								collection6.Clear();
								num2 = 133;
								int sceneCount = clsChapter.SceneCount;
								for (int i = 1; i <= sceneCount; i++)
								{
									num2 = 134;
									collection6.Add(clsChapter.get_SceneIDByIndex(i));
									num2 = 135;
								}
								num2 = 136;
								clsChapter.ClearScenes();
								while (true)
								{
									num2 = 138;
									if (collection6.Count <= 0)
									{
										break;
									}
									num2 = 139;
									IEnumerator enumerator11 = collection4.GetEnumerator();
									while (enumerator11.MoveNext())
									{
										clsScene Scene = (clsScene)enumerator11.Current;
										num2 = 140;
										if (Conversions.ToInteger(collection6[1]) == Scene.ID)
										{
											num2 = 141;
											clsChapter.AddSceneID(Conversions.ToInteger(Scene.Tags));
											break;
										}
										num2 = 143;
									}
									num2 = 144;
									if (enumerator11 is IDisposable)
									{
										(enumerator11 as IDisposable).Dispose();
									}
									num2 = 145;
									collection6.Remove(1);
								}
								num2 = 147;
							}
							num2 = 148;
							if (enumerator10 is IDisposable)
							{
								(enumerator10 as IDisposable).Dispose();
							}
							num2 = 149;
							clsProject = null;
							num2 = 150;
							SaveProject(CriticalSave: true);
							num2 = 151;
							clsShared.cSubs.NormalMouse();
						}
					}
				}
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_0d5e: Could not find block for branch target IL_0d2a*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void mnuExportProj_DropDownOpening(object sender, EventArgs e)
		{
			if (cProject.IsEmpty)
			{
				clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
				ToolStripMenuItem Menu = mnuExportProj;
				cMenuSubs.DisableDropdownItems(ref Menu);
				mnuExportProj = Menu;
			}
			else
			{
				clsMenuSubs cMenuSubs2 = clsShared.cMenuSubs;
				ToolStripMenuItem Menu = mnuExportProj;
				cMenuSubs2.EnableDropdownItems(ref Menu);
				mnuExportProj = Menu;
			}
		}

		private void mnuExportData_DropDownOpening(object sender, EventArgs e)
		{
			if (cProject.IsEmpty)
			{
				clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
				ToolStripMenuItem Menu = mnuExportData;
				cMenuSubs.DisableDropdownItems(ref Menu);
				mnuExportData = Menu;
			}
			else
			{
				clsMenuSubs cMenuSubs2 = clsShared.cMenuSubs;
				ToolStripMenuItem Menu = mnuExportData;
				cMenuSubs2.EnableDropdownItems(ref Menu);
				mnuExportData = Menu;
			}
		}

		private void mnuBackupMenu_DropDownOpening(object sender, EventArgs e)
		{
			if (cProject.IsEmpty)
			{
				clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
				ToolStripMenuItem Menu = mnuBackupMenu;
				cMenuSubs.DisableDropdownItems(ref Menu);
				mnuBackupMenu = Menu;
			}
			else
			{
				clsMenuSubs cMenuSubs2 = clsShared.cMenuSubs;
				ToolStripMenuItem Menu = mnuBackupMenu;
				cMenuSubs2.EnableDropdownItems(ref Menu);
				mnuBackupMenu = Menu;
			}
		}

		private bool EditorWindowsOpenWarning()
		{
			bool result;
			if (Editing())
			{
				result = true;
				clsShared.cLang.TransMsgBox("Please close all editor windows first.");
				ShowAllEditorWindows();
			}
			else
			{
				result = false;
			}
			return result;
		}

		private void ImportDataToolStripMenuItem_DropDownOpening(object sender, EventArgs e)
		{
			if (cProject.IsEmpty)
			{
				clsMenuSubs cMenuSubs = clsShared.cMenuSubs;
				ToolStripMenuItem Menu = ImportDataToolStripMenuItem;
				cMenuSubs.DisableDropdownItems(ref Menu);
				ImportDataToolStripMenuItem = Menu;
			}
			else
			{
				clsMenuSubs cMenuSubs2 = clsShared.cMenuSubs;
				ToolStripMenuItem Menu = ImportDataToolStripMenuItem;
				cMenuSubs2.EnableDropdownItems(ref Menu);
				ImportDataToolStripMenuItem = Menu;
			}
		}

		private void QuickstartGuidePDFToolStripMenuItem_Click(object sender, EventArgs e)
		{
			clsShared.cWWW.WebSiteVisit("http://sites.google.com/site/ywritersj/q");
		}

		private void SetupStatusNames()
		{
			try
			{
				ctxSetStatus.DropDownItems.Clear();
				mnuSetStatus.DropDownItems.Clear();
				int num = modVariables.StatusNames.Length - 1;
				for (int i = 1; i <= num; i++)
				{
					ToolStripMenuItem toolStripMenuItem = new ToolStripMenuItem();
					toolStripMenuItem.Text = clsShared.cLang.GetTranslation(modVariables.StatusNames[i]);
					toolStripMenuItem.Tag = i;
					mnuSetStatus.DropDownItems.Add(toolStripMenuItem);
					toolStripMenuItem.Click += mnuStatus_Click;
					if (i == 1)
					{
						toolStripMenuItem.Checked = true;
					}
					toolStripMenuItem = new ToolStripMenuItem();
					toolStripMenuItem.Text = clsShared.cLang.GetTranslation(modVariables.StatusNames[i]);
					toolStripMenuItem.Tag = i;
					toolStripMenuItem.Name = Conversions.ToString(i);
					ctxSetStatus.DropDownItems.Add(toolStripMenuItem);
					toolStripMenuItem.Click += mnuStatus_Click;
					if (i == 1)
					{
						toolStripMenuItem.Checked = true;
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void SetupWindows()
		{
			try
			{
				clsSettings cSettings = clsShared.cSettings;
				Form Form = this;
				cSettings.ReadWindowSettings("Main", ref Form);
				clsSettings cSettings2 = clsShared.cSettings;
				ListView List = ListChapters;
				cSettings2.ReadColumnSettings("MainChap", ref List);
				ListChapters = List;
				clsSettings cSettings3 = clsShared.cSettings;
				List = ListScenes;
				cSettings3.ReadColumnSettings("MainScn", ref List);
				ListScenes = List;
				clsSettings cSettings4 = clsShared.cSettings;
				List = ListProjectCharacters;
				cSettings4.ReadColumnSettings("MainProjChar", ref List);
				ListProjectCharacters = List;
				clsSettings cSettings5 = clsShared.cSettings;
				List = ListProjectItems;
				cSettings5.ReadColumnSettings("MainProjItem", ref List);
				ListProjectItems = List;
				clsSettings cSettings6 = clsShared.cSettings;
				List = ListProjectLocations;
				cSettings6.ReadColumnSettings("MainProjLoc", ref List);
				ListProjectLocations = List;
				clsSettings cSettings7 = clsShared.cSettings;
				List = ListCharUsed;
				cSettings7.ReadColumnSettings("MainCharUsed", ref List);
				ListCharUsed = List;
				clsSettings cSettings8 = clsShared.cSettings;
				List = ListCharAll;
				cSettings8.ReadColumnSettings("MainCharAll", ref List);
				ListCharAll = List;
				clsSettings cSettings9 = clsShared.cSettings;
				List = ListItemsUsed;
				cSettings9.ReadColumnSettings("MainItemsUsed", ref List);
				ListItemsUsed = List;
				clsSettings cSettings10 = clsShared.cSettings;
				List = ListItemsAll;
				cSettings10.ReadColumnSettings("MainItemsAll", ref List);
				ListItemsAll = List;
				clsSettings cSettings11 = clsShared.cSettings;
				List = ListLocUsed;
				cSettings11.ReadColumnSettings("MainLocUsed", ref List);
				ListLocUsed = List;
				clsSettings cSettings12 = clsShared.cSettings;
				List = ListLocAll;
				cSettings12.ReadColumnSettings("MainLocAll", ref List);
				ListLocAll = List;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				SplitContainer1.Width = (int)Math.Round(clsShared.cSettings.sGet("Splitter1", Splitter1.Left));
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				int num = (int)Math.Round(clsShared.cSettings.sGet("TabSceneHeight", TabControlScene.Height));
				if ((double)num < (double)TabControlMain.Height * 0.3)
				{
					TabControlScene.Height = (int)Math.Round((double)TabControlMain.Height * 0.3);
				}
				else if ((double)num > (double)TabControlMain.Height * 0.7)
				{
					TabControlScene.Height = (int)Math.Round((double)TabControlMain.Height * 0.7);
				}
				else
				{
					TabControlScene.Height = num;
				}
			}
			catch (Exception ex5)
			{
				ProjectData.SetProjectError(ex5);
				Exception ex6 = ex5;
				clsShared.cLog.AddAction(ex6, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				int num2 = (int)Math.Round(clsShared.cSettings.sGet("ChapterDescHeight", txtChapterDesc.Height));
				if ((double)num2 < (double)SplitContainer1.Height * 0.15)
				{
					SplitContainer1.SplitterDistance = (int)Math.Round((double)SplitContainer1.Height - (double)SplitContainer1.Height * 0.15);
				}
				else if ((double)num2 > (double)SplitContainer1.Height * 0.85)
				{
					SplitContainer1.SplitterDistance = (int)Math.Round((double)SplitContainer1.Height - (double)SplitContainer1.Height * 0.85);
				}
				else
				{
					SplitContainer1.SplitterDistance = SplitContainer1.Height - num2;
				}
			}
			catch (Exception ex7)
			{
				ProjectData.SetProjectError(ex7);
				Exception ex8 = ex7;
				clsShared.cLog.AddAction(ex8, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				int num3 = (int)Math.Round(clsShared.cSettings.sGet("NoteEditorHeight", txtNoteEditor.Height));
				if ((double)num3 < (double)TabControlMain.Height * 0.3)
				{
					txtNoteEditor.Height = (int)Math.Round((double)TabControlMain.Height * 0.3);
				}
				else if ((double)num3 > (double)TabControlMain.Height * 0.7)
				{
					txtNoteEditor.Height = (int)Math.Round((double)TabControlMain.Height * 0.7);
				}
				else
				{
					txtNoteEditor.Height = num3;
				}
			}
			catch (Exception ex9)
			{
				ProjectData.SetProjectError(ex9);
				Exception ex10 = ex9;
				clsShared.cLog.AddAction(ex10, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				int num4 = (int)Math.Round(clsShared.cSettings.sGet("CharDescHeight", txtCharDesc.Height));
				if ((double)num4 < (double)TabControlMain.Height * 0.3)
				{
					txtCharDesc.Height = (int)Math.Round((double)TabControlMain.Height * 0.3);
				}
				else if ((double)num4 > (double)TabControlMain.Height * 0.7)
				{
					txtCharDesc.Height = (int)Math.Round((double)TabControlMain.Height * 0.7);
				}
				else
				{
					txtCharDesc.Height = num4;
				}
				txtItemDesc.Height = txtCharDesc.Height;
				txtLocDesc.Height = txtCharDesc.Height;
			}
			catch (Exception ex11)
			{
				ProjectData.SetProjectError(ex11);
				Exception ex12 = ex11;
				clsShared.cLog.AddAction(ex12, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void LoadLastProject()
		{
			string text = clsShared.cSettings.sGet("LastProjectFile", "");
			string text2 = "";
			try
			{
				if (MyProject.Application.CommandLineArgs.Count > 0)
				{
					text2 = Interaction.Command().Replace("\"", "");
					if (Strings.InStr(text2, "/EBOOK", CompareMethod.Text) > 0)
					{
						text2 = Strings.Replace(text2, "/EBOOK", "", 1, -1, CompareMethod.Text);
						text2 = text2.Trim();
						GenEbookAndQuit = true;
					}
					clsShared.cLog.AddAction("Loading from commandline: " + text2);
					if (clsShared.cFile.FileExists(text2))
					{
						Splash.UpdateSplash("Loading " + clsShared.cFile.FileOnly(text2));
						LoadProject(text2, WithSplash: true);
					}
					else
					{
						GenEbookAndQuit = false;
						clsShared.cLog.AddAction(text2 + " not found. Could not load project");
					}
					text = "";
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				base.Enabled = true;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				if (clsShared.cSettings.sGet("LoadPreviousProjectOnStartup", DefaultIfUnknown: true))
				{
					LoadPreviousProjectOnStartupToolStripMenuItem.Checked = true;
					if (Operators.CompareString(text, "", TextCompare: false) != 0)
					{
						clsShared.cLog.AddAction("Trying to load previous project: " + text);
						if (clsShared.cFile.FileExists(text))
						{
							clsShared.cLog.AddAction("Loading last project: " + text);
							Splash.UpdateSplash(clsShared.cLang.GetTranslation("Loading", " '" + clsShared.cFile.FileOnly(text) + "'"));
							LoadProject(text, WithSplash: true);
						}
						else
						{
							clsShared.cLog.AddAction("Could not load previous project - file does not exist");
						}
					}
				}
				else
				{
					LoadPreviousProjectOnStartupToolStripMenuItem.Checked = false;
				}
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void RecommendedBooksOnWritingToolStripMenuItem_Click(object sender, EventArgs e)
		{
			clsShared.cWWW.VisitSpacejockComAu("OtherBooks.html?" + App.Title);
		}

		private void TabProjectChar_Click(object sender, EventArgs e)
		{
		}

		private void ListProjectCharacters_DoubleClick(object sender, EventArgs e)
		{
			if (ListProjectCharacters.FocusedItem != null)
			{
				int charID = Conversions.ToInteger(ListProjectCharacters.FocusedItem.Name);
				modEditChar.EditChar(ref cProject, charID);
			}
		}

		private void ListProjectCharacters_SelectedIndexChanged(object sender, EventArgs e)
		{
			if (ListProjectCharacters.FocusedItem != null)
			{
				FillCharDescText(Conversions.ToInteger(ListProjectCharacters.FocusedItem.Name));
			}
		}

		private void TabControlMain_SelectedIndexChanged(object sender, EventArgs e)
		{
			FillLocCharItemListIfSelected();
		}

		private void FillCharDescText(int CharID)
		{
			try
			{
				txtCharDesc.Text = cProject.get_CharByID(CharID).DescText;
				txtCharDesc.Tag = CharID;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void FillLocDescText(int LocID)
		{
			try
			{
				txtLocDesc.Text = cProject.get_LocationByID(LocID).DescText;
				txtLocDesc.Tag = LocID;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void FillItemDescText(int ItemID)
		{
			try
			{
				txtItemDesc.Text = cProject.get_ItemByID(ItemID).DescText;
				txtItemDesc.Tag = ItemID;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void FillLocCharItemListIfSelected()
		{
			if (TabControlMain.SelectedTab == TabProjectChar)
			{
				TimerFillCharlist.Stop();
				FillProjectCharList();
			}
			if (TabControlMain.SelectedTab == TabProjectLoc)
			{
				FillProjectLocList();
			}
			if (TabControlMain.SelectedTab == TabProjectItem)
			{
				FillProjectItemList();
			}
		}

		private void ListProjectItems_DoubleClick(object sender, EventArgs e)
		{
			if (ListProjectItems.FocusedItem != null)
			{
				int itemID = Conversions.ToInteger(ListProjectItems.FocusedItem.Name);
				modEditItem.EditItem(ref cProject, itemID);
			}
		}

		private void ListProjectItems_SelectedIndexChanged(object sender, EventArgs e)
		{
			if (ListProjectItems.FocusedItem != null)
			{
				FillItemDescText(Conversions.ToInteger(ListProjectItems.FocusedItem.Name));
			}
		}

		private void ListProjectLocations_DoubleClick(object sender, EventArgs e)
		{
			if (ListProjectLocations.FocusedItem != null)
			{
				int locationID = Conversions.ToInteger(ListProjectLocations.FocusedItem.Name);
				if (modEditLocation.EditLocation(ref cProject, locationID))
				{
					SaveProject(CriticalSave: false);
				}
			}
		}

		private void ListProjectLocations_DragDrop(object sender, DragEventArgs e)
		{
		}

		private void ListProjectLocations_SelectedIndexChanged(object sender, EventArgs e)
		{
			if (ListProjectLocations.FocusedItem != null)
			{
				FillLocDescText(Conversions.ToInteger(ListProjectLocations.FocusedItem.Name));
			}
		}

		private void AddNewCharToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (modEditChar.AddNewChar(ref cProject))
			{
				SaveProject(CriticalSave: false);
			}
		}

		private void AddNewLocToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (modEditLocation.AddNewLocation(ref cProject))
			{
				SaveProject(CriticalSave: false);
			}
		}

		private void AddNewItemToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (modEditItem.AddNewItem(ref cProject))
			{
				SaveProject(CriticalSave: false);
			}
		}

		private void AddNewToolStripMenuItem1_Click(object sender, EventArgs e)
		{
			ListView listView = modSubs.WhichListClicked(RuntimeHelpers.GetObjectValue(sender));
			if (listView.Equals(ListCharAll) | listView.Equals(ListCharUsed))
			{
				modEditChar.AddNewChar(ref cProject);
			}
			else if (listView.Equals(ListItemsAll) | listView.Equals(ListItemsUsed))
			{
				modEditItem.AddNewItem(ref cProject);
			}
			else if (listView.Equals(ListLocAll) | listView.Equals(ListLocUsed))
			{
				modEditLocation.AddNewLocation(ref cProject);
			}
			SaveProject(CriticalSave: false);
		}

		private void ctxListProjectChar_Opening(object sender, CancelEventArgs e)
		{
			if (cProject.IsEmpty)
			{
				AddNewCharToProject.Enabled = false;
			}
			else
			{
				AddNewCharToProject.Enabled = true;
			}
		}

		private void ctxListProjectLoc_Opening(object sender, CancelEventArgs e)
		{
			if (cProject.IsEmpty)
			{
				AddNewLocationToProject.Enabled = false;
			}
			else
			{
				AddNewLocationToProject.Enabled = true;
			}
		}

		private void ctxListProjectItem_Opening(object sender, CancelEventArgs e)
		{
			if (cProject.IsEmpty)
			{
				AddNewItemToProject.Enabled = false;
			}
			else
			{
				AddNewItemToProject.Enabled = true;
			}
		}

		private void CheckForBETAVersionToolStripMenuItem_Click(object sender, EventArgs e)
		{
			//Discarded unreachable code: IL_003a, IL_0050, IL_005a, IL_0067, IL_0099, IL_009b, IL_00af, IL_00d1
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				if (cProject.NotBlank())
				{
					num2 = 3;
					SaveProject(CriticalSave: false);
				}
				num2 = 4;
				TimerUpdate.Enabled = false;
				num2 = 5;
				CheckForUpdate(SuppressForm: false, Beta: true);
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_00cf: Could not find block for branch target IL_009b*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void mnuHelp_Click(object sender, EventArgs e)
		{
		}

		private void StartResetCharListTimer()
		{
			TimerFillCharlist.Stop();
			TimerFillCharlist.Start();
		}

		private void TimerFillCharlist_Tick(object sender, EventArgs e)
		{
			TimerFillCharlist.Stop();
			FillProjectCharList();
		}

		private void DisplaySceneGridToolStripMenuItem_Click(object sender, EventArgs e)
		{
			new frmSceneGrid(ref cProject).ShowDialog();
		}

		private void PrintAllNotesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				clsPrintNotes clsPrintNotes = new clsPrintNotes();
				clsPrintNotes.PrintProgress += PrintProgress;
				clsPrintNotes.PrintNoteList(cProject);
				clsPrintNotes.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void PrintScenesPerItemToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				clsPrintScenesPerItem clsPrintScenesPerItem = new clsPrintScenesPerItem();
				clsPrintScenesPerItem.PrintProgress += PrintProgress;
				clsPrintScenesPerItem.PrintScenesPerItem(cProject);
				clsPrintScenesPerItem.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void PrintScenesPerLocationToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				clsPrintScenesPerLocation clsPrintScenesPerLocation = new clsPrintScenesPerLocation();
				clsPrintScenesPerLocation.PrintProgress += PrintProgress;
				clsPrintScenesPerLocation.PrintScenesPerLocation(cProject);
				clsPrintScenesPerLocation.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void PrintScenesPerCharacterToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				clsPrintScenesPerCharacter clsPrintScenesPerCharacter = new clsPrintScenesPerCharacter();
				clsPrintScenesPerCharacter.PrintProgress += PrintProgress;
				clsPrintScenesPerCharacter.PrintScenesPerCharacter(cProject);
				clsPrintScenesPerCharacter.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void mnuPrint_Click(object sender, EventArgs e)
		{
		}

		private void DeleteOrphanScenesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (clsShared.cLang.TransMsgBox("Delete all scenes which don't belong to any chapters?", MsgBoxStyle.OkCancel) == MsgBoxResult.Cancel)
			{
				return;
			}
			for (int i = cProject.SceneCount; i >= 1; i += -1)
			{
				clsScene clsScene = ((clsGenericBase<clsScene>)cProject.Scenes).get_ByIndex(i);
				int belongsToChID = clsScene.BelongsToChID;
				if (belongsToChID <= 0)
				{
					cProject.RemoveSceneByID(clsScene.ID);
				}
				else if (cProject.get_ChapterByID(belongsToChID).ID <= 0)
				{
					cProject.RemoveSceneByID(clsScene.ID);
				}
			}
		}

		private void Storyboard_EditScene(int ScID, int WhichTab)
		{
			EditScene(ref cProject, ScID, WhichTab);
		}

		private void FinishedEdit(int ScID)
		{
			try
			{
				cProject.get_SceneByID(ScID).Unlock();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void ShowAllSceneEditors()
		{
			IEnumerator enumerator = default(IEnumerator);
			try
			{
				enumerator = colEditors.GetEnumerator();
				while (enumerator.MoveNext())
				{
					frmEditor frmEditor = (frmEditor)enumerator.Current;
					try
					{
						frmEditor.Show();
						frmEditor.WindowState = FormWindowState.Normal;
						frmEditor.BringToFront();
					}
					catch (Exception ex)
					{
						ProjectData.SetProjectError(ex);
						Exception ex2 = ex;
						clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
						ProjectData.ClearProjectError();
					}
				}
			}
			finally
			{
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
			}
		}

		public bool EditScene(ref clsProject cProject, int ScID, int WhichTab = 0)
		{
			bool result = false;
			if (cProject.get_SceneByID(ScID).EditingExternal)
			{
				clsShared.cLang.TransMsgBox("You can't edit that scene - it's been opened in an external editor");
				return result;
			}
			try
			{
				LockMainScreenSceneEdits();
				string key = Conversions.ToString(ScID);
				frmEditor fEdit;
				if (colEditors.Contains(key))
				{
					fEdit = (frmEditor)colEditors[key];
					fEdit.Show();
				}
				else if (colSpareEditors.Count > 0)
				{
					fEdit = (frmEditor)colSpareEditors[1];
					colSpareEditors.Remove(1);
					fEdit.ReadEditorSettings();
					cProject.get_SceneByID(ScID).Lock();
					Reposition(ref fEdit);
					colEditors.Add(fEdit, key);
					fEdit.EditScene(ScID, WhichTab);
					fEdit.Show();
				}
				else
				{
					cProject.get_SceneByID(ScID).Lock();
					fEdit = new frmEditor(ref cProject, ScID);
					fEdit.Finished += fEdit_Finished;
					fEdit.EditDifferentScene += fEdit_EditDifferentScene;
					fEdit.CreateNewScene += fEdit_CreateNewScene;
					fEdit.SettingsChanged += fEdit_SettingsChanged;
					fEdit.TriggerTiledWindows += fEdit_TileWindows;
					fEdit.TriggerUntiledWindows += fEdit_UntileWindows;
					Reposition(ref fEdit);
					colEditors.Add(fEdit, key);
					fEdit.EditScene(ScID, WhichTab);
					fEdit.Show();
				}
				fEdit.CurrentSearchString = SearchString;
				fEdit.BringToFront();
				UpdateSceneList(ScID);
				return true;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				result = false;
				clsShared.cLang.TransMsgBox("Couldn't open any more scene windows");
				clsShared.cLog.AddAction("Couldn't create editor for ScID: " + Conversions.ToString(ScID));
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
				return result;
			}
		}

		private void fEdit_Finished(int ScID)
		{
			clsShared.cLog.AddAction("ScID: " + Conversions.ToString(ScID) + " editor finished");
			string key = Conversions.ToString(ScID);
			try
			{
				FinishedEdit(ScID);
				if (colEditors.Contains(key))
				{
					frmEditor frmEditor = (frmEditor)colEditors[key];
					colSpareEditors.Add(frmEditor);
					colEditors.Remove(key);
					frmEditor.Hide();
					cDelay.DoEvents();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction("Error closing editor for ScID: " + Conversions.ToString(ScID));
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				UpdateSceneList(ScID);
				if (colEditors.Count == 0)
				{
					SaveProject(CriticalSave: false);
				}
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		public void CreateNewScene(ref clsProject cProject, int BelongsToChID, int InsertBeforeScID = 0, int InsertAfterScID = 0)
		{
			try
			{
				int ScID = cProject.AddNewScene(BelongsToChID);
				if (InsertBeforeScID > 0)
				{
					int num = cProject.get_ChapterByID(BelongsToChID).SceneIndex(InsertBeforeScID);
					if (num > 0)
					{
						cProject.get_ChapterByID(BelongsToChID).RemoveSceneByID(ScID);
						cProject.get_ChapterByID(BelongsToChID).InsertSceneIDBeforeIndex(ScID, num);
						cProject.get_ChapterByID(BelongsToChID).Save();
					}
				}
				else if (InsertAfterScID > 0)
				{
					int num = cProject.get_ChapterByID(BelongsToChID).SceneIndex(InsertAfterScID);
					if (num > 0)
					{
						cProject.get_ChapterByID(BelongsToChID).RemoveSceneByID(ScID);
						cProject.get_ChapterByID(BelongsToChID).AppendSceneIDAfterIndex(ref ScID, num);
						cProject.get_ChapterByID(BelongsToChID).Save();
					}
				}
				SaveProject(CriticalSave: false);
				EditScene(ref cProject, ScID);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void fEdit_EditDifferentScene(int NewScID, int WhichTab, string SearchString)
		{
			EditScene(ref cProject, NewScID, WhichTab);
		}

		private void fEdit_CreateNewScene(int BelongsToChID, int InsertBeforeScID = 0, int InsertAfterScID = 0)
		{
			CreateNewScene(ref cProject, BelongsToChID, InsertBeforeScID, InsertAfterScID);
		}

		private void fEdit_SettingsChanged(int ScID)
		{
			IEnumerator enumerator = default(IEnumerator);
			try
			{
				enumerator = colEditors.GetEnumerator();
				while (enumerator.MoveNext())
				{
					frmEditor frmEditor = (frmEditor)enumerator.Current;
					if (frmEditor.ID != ScID)
					{
						frmEditor.RefreshSettings();
					}
				}
			}
			finally
			{
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
			}
		}

		private void Reposition(ref frmEditor fEdit)
		{
			try
			{
				int count = colEditors.Count;
				int num = 1;
				frmEditor frmEditor;
				while (true)
				{
					if (num > count)
					{
						return;
					}
					frmEditor = (frmEditor)colEditors[num];
					if (frmEditor.WindowState == FormWindowState.Normal)
					{
						break;
					}
					num++;
				}
				fEdit.Left = frmEditor.Left;
				fEdit.Top = frmEditor.Top;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void UpdateBackupButton()
		{
			if (DateTime.Compare(cProject.LastFullBackup.Date, DateAndTime.Now.Date.AddDays(-7.0)) <= 0)
			{
				tssBackupButton.Visible = true;
				tssBackupButton.ForeColor = Color.Red;
			}
			else if (DateTime.Compare(cProject.LastFullBackup.Date, DateAndTime.Now.Date.AddDays(-4.0)) <= 0)
			{
				tssBackupButton.Visible = true;
			}
			else
			{
				tssBackupButton.Visible = false;
			}
		}

		private void TriggerErrorToolStripMenuItem_Click(object sender, EventArgs e)
		{
			clsShared.cShowError.ShowErr("Test Error", MethodBase.GetCurrentMethod(), "");
		}

		private void txtDesc_LinkClicked(object sender, LinkClickedEventArgs e)
		{
			clsShared.cWWW.WebSiteVisit(e.LinkText);
		}

		private void txtDesc_LostFocus(object sender, EventArgs e)
		{
			if (DisplayedSceneID() > 0)
			{
				int iD = DisplayedSceneID();
				clsScene clsScene = cProject.get_SceneByID(iD);
				if (Operators.CompareString(clsScene.DescText, txtDesc.Text, TextCompare: false) != 0)
				{
					clsScene.DescText = txtDesc.Text;
					DisplayTabIcons();
				}
			}
		}

		private void txtDesc_TextChanged(object sender, EventArgs e)
		{
		}

		private void txtSceneNotes_LinkClicked(object sender, LinkClickedEventArgs e)
		{
			clsShared.cWWW.WebSiteVisit(e.LinkText);
		}

		private void txtSceneNotes_LostFocus(object sender, EventArgs e)
		{
			if (DisplayedSceneID() > 0)
			{
				int iD = DisplayedSceneID();
				clsScene clsScene = cProject.get_SceneByID(iD);
				if (Operators.CompareString(clsScene.Notes, txtSceneNotes.Text, TextCompare: false) != 0)
				{
					clsScene.Notes = txtSceneNotes.Text;
					DisplayTabIcons();
				}
			}
		}

		private void txtGoal_LostFocus(object sender, EventArgs e)
		{
			if (DisplayedSceneID() > 0)
			{
				int iD = DisplayedSceneID();
				clsScene clsScene = cProject.get_SceneByID(iD);
				if (Operators.CompareString(Conversions.ToString(txtGoal.Tag), txtGoal.Text, TextCompare: false) != 0)
				{
					clsScene.Goal = txtGoal.Text;
					txtGoal.Tag = txtGoal.Text;
					DisplayTabIcons();
				}
			}
		}

		private void ClearGoalFields()
		{
			txtGoal.Text = "";
			txtGoal.Tag = "";
			txtOutcome.Text = "";
			txtOutcome.Tag = "";
			txtConflict.Text = "";
			txtConflict.Tag = "";
			DisplayTabIcons();
		}

		private void txtConflict_LostFocus(object sender, EventArgs e)
		{
			if (DisplayedSceneID() > 0)
			{
				int iD = DisplayedSceneID();
				clsScene clsScene = cProject.get_SceneByID(iD);
				if (Operators.CompareString(Conversions.ToString(txtConflict.Tag), txtConflict.Text, TextCompare: false) != 0)
				{
					clsScene.Conflict = txtConflict.Text;
					txtConflict.Tag = txtConflict.Text;
					DisplayTabIcons();
				}
			}
		}

		private void txtOutcome_LostFocus(object sender, EventArgs e)
		{
			if (DisplayedSceneID() > 0)
			{
				int iD = DisplayedSceneID();
				clsScene clsScene = cProject.get_SceneByID(iD);
				if (Operators.CompareString(Conversions.ToString(txtOutcome.Tag), txtOutcome.Text, TextCompare: false) != 0)
				{
					clsScene.Outcome = txtOutcome.Text;
					txtOutcome.Tag = txtOutcome.Text;
					DisplayTabIcons();
				}
			}
		}

		private void ListScenes_SelectedIndexChanged(object sender, EventArgs e)
		{
			try
			{
				ListView listView = (ListView)sender;
				if (listView.FocusedItem == null)
				{
					if (listView.Items.Count > 0)
					{
						mvarSelectedSceneID = Conversions.ToInteger(listView.Items[0].Tag);
					}
					else
					{
						mvarSelectedSceneID = 0;
						LockMainScreenSceneEdits();
					}
				}
				else
				{
					mvarSelectedSceneID = Conversions.ToInteger(listView.FocusedItem.Tag);
				}
				if (!SuppressUpdate)
				{
					DisplaySelectedScene();
				}
				else
				{
					clsShared.cLog.AddAction("Scene list update suppressed");
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void DisplayTabIcons()
		{
			try
			{
				if (Operators.CompareString(txtDesc.Text, "", TextCompare: false) == 0)
				{
					tabSceneDescription.ImageKey = "";
				}
				else
				{
					tabSceneDescription.ImageKey = "desc";
				}
				if (Operators.CompareString(txtSceneNotes.Text.Trim(), "", TextCompare: false) == 0)
				{
					tabSceneNotes.ImageKey = "";
				}
				else
				{
					tabSceneNotes.ImageKey = "yw_Note_16_ico.ico";
				}
				if (Operators.CompareString(txtGoal.Text.Trim() + txtOutcome.Text.Trim() + txtConflict.Text.Trim(), "", TextCompare: false) == 0)
				{
					tabSceneGoals.ImageKey = "";
				}
				else
				{
					tabSceneGoals.ImageKey = "goal";
				}
				if (ListItemsUsed.Items.Count > 0)
				{
					tabSceneItems.ImageKey = "item";
				}
				else
				{
					tabSceneItems.ImageKey = "";
				}
				if (ListLocUsed.Items.Count > 0)
				{
					tabSceneLocations.ImageKey = "location";
				}
				else
				{
					tabSceneLocations.ImageKey = "";
				}
				if (ListCharUsed.Items.Count > 0)
				{
					tabSceneCharacters.ImageKey = "character";
				}
				else
				{
					tabSceneCharacters.ImageKey = "";
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void txtSceneNotes_TextChanged(object sender, EventArgs e)
		{
		}

		private void FindNext()
		{
			int stepping = 1;
			DoFind(stepping);
		}

		private void FindPrevious()
		{
			int stepping = -1;
			DoFind(stepping);
		}

		private void DoFind(int Stepping)
		{
			int num = 0;
			string text = "";
			if (SearchString.StartsWith("@Regex "))
			{
				UseRegex = true;
			}
			else
			{
				UseRegex = false;
			}
			SearchSceneID = 0;
			RichTextBox richTextBox = new RichTextBox();
			if (Operators.CompareString(SearchString, "", TextCompare: false) == 0)
			{
				ShowFind();
				return;
			}
			if (SearchChapterIndex == -1)
			{
				if (Stepping == -1)
				{
					SearchChapterIndex = ListChapters.Items.Count - 1;
				}
				else
				{
					SearchChapterIndex = 0;
				}
			}
			if (SearchChapterIndex >= ListChapters.Items.Count && Stepping == -1)
			{
				SearchChapterIndex = ListChapters.Items.Count - 1;
			}
			if (SearchSceneIndex == -1 && Stepping != -1)
			{
				SearchSceneIndex = 0;
			}
			SuppressUpdate = true;
			try
			{
				int num2 = (Stepping != -1) ? (ListChapters.Items.Count - 1) : 0;
				int searchChapterIndex = SearchChapterIndex;
				int num3 = num2;
				int i;
				int j = default(int);
				bool flag = default(bool);
				for (i = searchChapterIndex; ((Stepping >> 31) ^ i) <= ((Stepping >> 31) ^ num3); i += Stepping)
				{
					num = Conversions.ToInteger(ListChapters.Items[i].Tag);
					clsChapter clsChapter = cProject.get_ChapterByID(num);
					int num4 = (Stepping != -1) ? (clsChapter.SceneCount - 1) : 0;
					if (Stepping == -1)
					{
						if (SearchSceneIndex == -1)
						{
							SearchSceneIndex = clsChapter.SceneCount - 1;
						}
						else if (SearchSceneIndex >= clsChapter.SceneCount)
						{
							SearchSceneIndex = clsChapter.SceneCount - 1;
						}
					}
					int searchSceneIndex = SearchSceneIndex;
					int num5 = num4;
					for (j = searchSceneIndex; ((Stepping >> 31) ^ j) <= ((Stepping >> 31) ^ num5); j += Stepping)
					{
						clsScene clsScene = cProject.get_SceneByID(clsChapter.get_SceneIDByIndex(j + 1));
						try
						{
							richTextBox.Rtf = clsScene.TextRTF;
						}
						catch (Exception ex)
						{
							ProjectData.SetProjectError(ex);
							Exception ex2 = ex;
							richTextBox.Text = clsScene.TextRTF;
							ProjectData.ClearProjectError();
						}
						text = richTextBox.Text;
						if (Stepping == -1)
						{
							if (SearchLoc == 0)
							{
								SearchLoc = text.Length;
							}
							if (SearchLoc > 1)
							{
								if (UseRegex)
								{
									string pattern = SearchString.Substring(7);
									Match match = new Regex(pattern, RegexOptions.RightToLeft).Match(text, SearchLoc);
									if (match.Success)
									{
										SearchLoc = match.Index - 1;
										SearchRegexFound = match.Value;
									}
									else
									{
										SearchLoc = 0;
										SearchRegexFound = "";
									}
								}
								else if (CaseSensitive)
								{
									SearchLoc = Strings.InStrRev(text, SearchString, SearchLoc - 1);
								}
								else
								{
									SearchLoc = Strings.InStrRev(text, SearchString, SearchLoc - 1, CompareMethod.Text);
								}
							}
							else
							{
								SearchLoc = 0;
							}
						}
						else if (UseRegex)
						{
							string pattern2 = SearchString.Substring(7);
							Match match2 = new Regex(pattern2).Match(text, SearchLoc);
							if (match2.Success)
							{
								SearchLoc = match2.Index + 1;
								SearchRegexFound = match2.Value;
							}
							else
							{
								SearchLoc = 0;
								SearchRegexFound = "";
							}
						}
						else if (CaseSensitive)
						{
							SearchLoc = Strings.InStr(SearchLoc + 1, text, SearchString);
						}
						else
						{
							SearchLoc = Strings.InStr(SearchLoc + 1, text, SearchString, CompareMethod.Text);
						}
						if (SearchLoc > 0)
						{
							SearchSceneID = clsScene.ID;
							flag = true;
							break;
						}
					}
					if (flag)
					{
						break;
					}
					if (Stepping == -1)
					{
						SearchSceneIndex = -1;
					}
					else
					{
						SearchSceneIndex = 0;
					}
					SearchLoc = 0;
				}
				SearchChapterIndex = i;
				SearchSceneIndex = j;
				if (flag)
				{
					bool flag2;
					if (ListChapters.FocusedItem == null)
					{
						flag2 = true;
					}
					else if (Conversions.ToInteger(ListChapters.FocusedItem.Tag) == num)
					{
						flag2 = false;
					}
					else
					{
						ListChapters.FocusedItem.Selected = false;
						flag2 = true;
					}
					if (flag2)
					{
						ListChapters.FocusedItem = ListChapters.Items[Conversions.ToString(num)];
						ListChapters.FocusedItem.Selected = true;
						ListChapters.FocusedItem.EnsureVisible();
						FillSceneList(SearchSceneID);
					}
					else if (ListScenes.Items.ContainsKey(Conversions.ToString(SearchSceneID)) && !ListScenes.Items[Conversions.ToString(SearchSceneID)].Selected)
					{
						if (ListScenes.SelectedItems.Count > 0)
						{
							for (int k = ListScenes.SelectedItems.Count - 1; k >= 0; k += -1)
							{
								ListScenes.SelectedItems[k].Selected = false;
							}
						}
						if (ListScenes.Items.ContainsKey(Conversions.ToString(SearchSceneID)))
						{
							ListScenes.Items[Conversions.ToString(SearchSceneID)].Selected = true;
							ListScenes.Items[Conversions.ToString(SearchSceneID)].EnsureVisible();
						}
					}
					if (mvarDisplayedSceneID != SearchSceneID)
					{
						mvarSelectedSceneID = SearchSceneID;
						DisplaySelectedScene();
					}
					DisplaySearchResult();
				}
				else
				{
					clsShared.cLang.TransMsgBox("No more matches");
				}
				SuppressUpdate = false;
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private int GetIDFromFocusedItemTag(ref ListView SelectedList)
		{
			ListViewItem focusedItem = SelectedList.FocusedItem;
			int result = -1;
			try
			{
				if (focusedItem != null)
				{
					return result;
				}
				result = Conversions.ToInteger(focusedItem.Tag);
				return result;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
				return result;
			}
		}

		private void OpenSettingsFolderToolStripMenuItem_Click(object sender, EventArgs e)
		{
			clsShared.cFile.RunFile(modVariables.DATAPATH);
		}

		private void txtSceneTitle_LostFocus(object sender, EventArgs e)
		{
			if (DisplayedSceneID() > 0)
			{
				int num = DisplayedSceneID();
				clsScene clsScene = cProject.get_SceneByID(num);
				if (Operators.CompareString(Conversions.ToString(txtSceneTitle.Tag), txtSceneTitle.Text, TextCompare: false) != 0)
				{
					clsScene.Title = txtSceneTitle.Text;
					txtSceneTitle.Tag = txtSceneTitle.Text;
					ListViewItem oItem = ListScenes.Items[Conversions.ToString(num)];
					UpdateListItemFromScene(ref oItem, num);
				}
			}
		}

		private void SetReportWidthToolStripMenuItem_Click(object sender, EventArgs e)
		{
			int value = (int)Math.Round(clsShared.cSettings.sGet("ReportWidth", 790));
			int num = 0;
			try
			{
				num = Conversions.ToInteger(Interaction.InputBox("Enter the new report width in pixels. Min 600, Max 1800, Default 790.", "yWriter6", Conversions.ToString(value)));
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
			if (num >= 600 && num <= 1800)
			{
				clsShared.cSettings.sSet("ReportWidth", num);
			}
		}

		private void DisposeOfStoryBoard()
		{
			try
			{
				if (Storyboard != null)
				{
					Storyboard.Dispose();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
			Storyboard = null;
		}

		private void CloseExternalWindows()
		{
			DisposeOfStoryBoard();
			CloseSceneListIfOpen();
		}

		private bool SaveAndContinue(string WarningMessage)
		{
			bool result = false;
			TimerUpdate.Stop();
			if (!EditorWindowsOpenWarning())
			{
				if (cProject.NotBlank())
				{
					if (clsShared.cLang.TransMsgBox(WarningMessage, MsgBoxStyle.OkCancel) != MsgBoxResult.Cancel && SaveProject(CriticalSave: false))
					{
						CloseExternalWindows();
						result = true;
					}
				}
				else
				{
					result = true;
				}
			}
			return result;
		}

		private void AutomaticallyAddItemsToScenesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (clsShared.cLang.TransMsgBox("This will scan every scene in the project and automatically attach items to the scenes where they're mentioned. Proceed?", MsgBoxStyle.YesNo) != MsgBoxResult.No)
			{
				cProject.AutoAttachItems();
			}
		}

		private void AutomaticallyAddLocationsToScenesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (clsShared.cLang.TransMsgBox("This will scan every scene in the project and automatically attach locations to the scenes where they're mentioned. Proceed?", MsgBoxStyle.YesNo) != MsgBoxResult.No)
			{
				cProject.AutoAttachLocations();
			}
		}

		private void txtSceneTitle_TextChanged(object sender, EventArgs e)
		{
		}

		private void AutomaticallyAddCharactersToScenesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (clsShared.cLang.TransMsgBox("This will scan every scene in the project and automatically attach characters to the scenes where they're mentioned. Proceed?", MsgBoxStyle.YesNo) != MsgBoxResult.No)
			{
				cProject.AutoAttachCharacters();
			}
		}

		private void ToYWriter5FormatToolStripMenuItem_Click(object sender, EventArgs e)
		{
			ExportYW5Chapters(ToFile: true);
		}

		private void ExportYW5Chapters(bool ToFile)
		{
			if (EditorWindowsOpenWarning())
			{
				return;
			}
			SaveProject(CriticalSave: false);
			string text = cProject.ExportFolder();
			clsShared.cFile.MkMissingDir(text);
			clsProject clsProject = new clsProject();
			VBMath.Randomize(DateAndTime.Now.ToOADate());
			string text2 = Path.Combine(text, "ExportedChapters_" + Strings.Format(Conversion.Int(VBMath.Rnd() * 100f), "000") + ".ywc5");
			Collection collection = new Collection();
			Collection collection2 = new Collection();
			Collection collection3 = new Collection();
			Collection collection4 = new Collection();
			Collection collection5 = new Collection();
			string text3 = "";
			IEnumerator enumerator = default(IEnumerator);
			try
			{
				enumerator = ListChapters.SelectedItems.GetEnumerator();
				while (enumerator.MoveNext())
				{
					ListViewItem listViewItem = (ListViewItem)enumerator.Current;
					collection.Add(RuntimeHelpers.GetObjectValue(listViewItem.Tag), Conversions.ToString(listViewItem.Tag));
				}
			}
			finally
			{
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
			}
			if (!clsProject.Load(cProject.FileWithPath, IgnoreLock: true))
			{
				return;
			}
			clsProject.FileWithPath = text2;
			clsProject.QuickSaveYWCompacted5();
			int sceneCount = clsProject.SceneCount;
			for (int i = 1; i <= sceneCount; i++)
			{
				int iD = clsProject.Scenes.SceneByIndex(i).ID;
				int belongsToChID = clsProject.get_SceneByID(iD).BelongsToChID;
				if (collection.Contains(Conversions.ToString(belongsToChID)))
				{
					collection2.Add(iD, Conversions.ToString(iD));
				}
			}
			for (int i = clsProject.SceneCount; i >= 1; i += -1)
			{
				int iD = clsProject.Scenes.SceneByIndex(i).ID;
				if (!collection2.Contains(Conversions.ToString(iD)))
				{
					clsProject.RemoveSceneByID(iD);
				}
			}
			IEnumerator enumerator2 = default(IEnumerator);
			try
			{
				enumerator2 = clsProject.Scenes.GetEnumerator();
				while (enumerator2.MoveNext())
				{
					clsScene clsScene = (clsScene)enumerator2.Current;
					int charCount = clsScene.CharCount;
					for (int i = 1; i <= charCount; i++)
					{
						text3 = Conversions.ToString(((clsSceneBase)clsScene).get_CharIDByIndex(i));
						if (!collection5.Contains(text3))
						{
							collection5.Add(text3, text3);
						}
					}
					int locationCount = clsScene.LocationCount;
					for (int i = 1; i <= locationCount; i++)
					{
						text3 = Conversions.ToString(((clsSceneBase)clsScene).get_LocationIDByIndex(i));
						if (!collection3.Contains(text3))
						{
							collection3.Add(text3, text3);
						}
					}
					int itemCount = clsScene.ItemCount;
					for (int i = 1; i <= itemCount; i++)
					{
						text3 = Conversions.ToString(((clsSceneBase)clsScene).get_ItemIDByIndex(i));
						if (!collection4.Contains(text3))
						{
							collection4.Add(text3, text3);
						}
					}
				}
			}
			finally
			{
				if (enumerator2 is IDisposable)
				{
					(enumerator2 as IDisposable).Dispose();
				}
			}
			for (int i = clsProject.CharCount; i >= 1; i += -1)
			{
				int iD = clsProject.Chars.CharByIndex(i).ID;
				if (!collection5.Contains(Conversions.ToString(iD)))
				{
					clsProject.RemoveCharByID(iD);
				}
			}
			for (int i = clsProject.LocationCount; i >= 1; i += -1)
			{
				int iD = clsProject.Locations.LocationByIndex(i).ID;
				if (!collection3.Contains(Conversions.ToString(iD)))
				{
					clsProject.RemoveLocationByID(iD);
				}
			}
			for (int i = clsProject.ItemCount; i >= 1; i += -1)
			{
				int iD = clsProject.Items.ItemByIndex(i).ID;
				if (!collection4.Contains(Conversions.ToString(iD)))
				{
					clsProject.RemoveItemByID(iD);
				}
			}
			for (int i = clsProject.ChapterCount; i >= 1; i += -1)
			{
				int belongsToChID = clsProject.Chapters.ChapterByIndex(i).ID;
				if (!collection.Contains(Conversions.ToString(belongsToChID)))
				{
					clsProject.RemoveChapterOnlyByID(belongsToChID);
				}
			}
			clsProject.ClearWordLogs();
			clsProject.QuickSaveYWCompacted5();
			clsProject = null;
			clsShared.cSettings.sSet("LastProjectFile", cProject.FileWithPath);
			clsShared.cSettings.sSet("LastProjectLoaded", cProject.FileWithPath);
			if (ToFile)
			{
				clsShared.cLang.TransMsgBox("Your exported chapters are contained in this file: @1@You can now import this file into another project.", MsgBoxStyle.OkOnly, "", text2 + "\r\n");
				return;
			}
			string TextString = "";
			clsShared.cFile.ReadTextAuto(text2, ref TextString, UseSysEncoding: true);
			Clipboard.SetText(TextString, (TextDataFormat)Conversions.ToInteger(Interaction.IIf(Encoding.Default.IsSingleByte, DataFormats.Text, DataFormats.UnicodeText)));
		}

		private void ToRTFToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (ListChapters.SelectedItems.Count == 0)
			{
				Interaction.MsgBox("Please select one or more chapters first");
				return;
			}
			RichTextBox richTextBox = new RichTextBox();
			RichTextBox richTextBox2 = new RichTextBox();
			string familyName = clsShared.cSettings.sGet("EditorFontName", "Segoe UI");
			float num = clsShared.cSettings.sGet("EditorFontSize", 10f);
			string text = "ExportedChapters.rtf";
			if (ListChapters.SelectedItems.Count == 1)
			{
				text = clsShared.cFile.StripBadFileChar(ListChapters.SelectedItems[0].Text) + ".rtf";
				if (Operators.CompareString(text, ".rtf", TextCompare: false) == 0)
				{
					text = "ExportedChapters.rtf";
				}
			}
			string outputFilename = clsShared.cFileSel.GetOutputFilename("Specify your chapter file", cProject.ProjectPath(), text, "*.rtf", !clsShared.cSettings.sGet("OverwriteExport", DefaultIfUnknown: false));
			int num2 = 0;
			int num3 = 0;
			if (Operators.CompareString(outputFilename, "", TextCompare: false) != 0)
			{
				try
				{
					IEnumerator enumerator = default(IEnumerator);
					try
					{
						enumerator = ListChapters.SelectedItems.GetEnumerator();
						while (enumerator.MoveNext())
						{
							ListViewItem listViewItem = (ListViewItem)enumerator.Current;
							clsChapter clsChapter = cProject.get_ChapterByID(Conversions.ToInteger(listViewItem.Tag));
							if (!clsChapter.Unused & (clsChapter.Type == ChapterTypes.ChapterNormal))
							{
								num2++;
								richTextBox2.Text = "\r\n\r\n\r\n" + clsChapter.Title + "\r\n\r\n";
								if (num2 > 1)
								{
									richTextBox2.Select(0, 0);
									richTextBox2.SelectedRtf = "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang3081\\uc1 \\pard \\page \\widowctrl \\par }";
								}
								richTextBox2.SelectAll();
								richTextBox2.SelectionAlignment = HorizontalAlignment.Center;
								richTextBox2.SelectionFont = new Font(familyName, num + 2f, FontStyle.Bold);
								if (richTextBox.TextLength > 0)
								{
									richTextBox.Select(richTextBox.TextLength - 1, 0);
								}
								richTextBox.SelectedRtf = richTextBox2.Rtf;
								int sceneCount = clsChapter.SceneCount;
								for (int i = 1; i <= sceneCount; i++)
								{
									clsScene clsScene = cProject.get_SceneByID(clsChapter.get_SceneIDByIndex(i));
									if ((!clsScene.ExportCondSpecific | clsScene.ExportWhenRTF) && !clsScene.Unused)
									{
										richTextBox.Select(richTextBox.TextLength - 1, 0);
										if (num3 >= 1 && !clsScene.AppendToPrevious)
										{
											richTextBox2.Text = "\r\n* * *\r\n\r\n";
											richTextBox2.SelectAll();
											richTextBox2.SelectionAlignment = HorizontalAlignment.Center;
											richTextBox2.SelectionFont = new Font(familyName, num);
											richTextBox.SelectedRtf = richTextBox2.Rtf;
										}
										string RTFText = modSubs.RTFWithParsedVars(cProject, clsScene, modVariables.eFinalExportType.Rtf);
										modSubs.ReformatRTFPara(ref RTFText);
										richTextBox.SelectedRtf = RTFText;
										num3++;
									}
								}
							}
						}
					}
					finally
					{
						if (enumerator is IDisposable)
						{
							(enumerator as IDisposable).Dispose();
						}
					}
					if (richTextBox.TextLength > 0)
					{
						clsShared.cFile.WriteTextFile(outputFilename, richTextBox.Rtf);
						clsShared.cFile.RunFile(clsShared.cFile.PathOnly(outputFilename));
					}
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
					ProjectData.ClearProjectError();
				}
			}
		}

		private void frmMain_KeyUp(object sender, KeyEventArgs e)
		{
			if (((e.KeyCode == Keys.Up) | (e.KeyCode == Keys.Down)) && e.Shift)
			{
				SuppressUpdate = false;
			}
			if (!(MyProject.Computer.Keyboard.ShiftKeyDown & MyProject.Computer.Keyboard.CtrlKeyDown))
			{
				return;
			}
			if (e.KeyCode == Keys.X)
			{
				e.Handled = true;
				new clsExportRTFToLaTeX().Export(cProject, AskWhichChapters: false);
			}
			else if (e.KeyCode == Keys.E)
			{
				e.Handled = true;
				EditCurrentScene();
			}
			else if (e.KeyCode == Keys.S)
			{
				e.Handled = true;
				if (cProject.NotBlank())
				{
					SaveProject(CriticalSave: true);
				}
			}
			else if (e.KeyCode == Keys.B)
			{
				e.Handled = true;
				DoCompleteBackup();
			}
		}

		private void ListScenes_MouseUp(object sender, MouseEventArgs e)
		{
			if (e.Button == MouseButtons.Left && ((Control.ModifierKeys & Keys.ShiftKey) | (Control.ModifierKeys & Keys.LControlKey)) != 0)
			{
				SuppressUpdate = false;
			}
		}

		private void PrintsScenesPerTagToolStripMenuItem_Click(object sender, EventArgs e)
		{
			new clsPrintScenesPerTag().PrintScenesPerTag(cProject);
		}

		private void PrintCharactersPerTagToolStripMenuItem_Click(object sender, EventArgs e)
		{
			new clsPrintCharPerTag().PrintCharPerTag(cProject);
		}

		private void PrintLocationsPerTagToolStripMenuItem_Click(object sender, EventArgs e)
		{
			new clsPrintLocPerTag().PrintLocPerTag(cProject);
		}

		private void PrintItemsPerTagToolStripMenuItem_Click(object sender, EventArgs e)
		{
			new clsPrintItemPerTag().PrintItemPerTag(cProject);
		}

		private void PrintProgress(string ProgressString)
		{
			tssPrintProgress.Text = ProgressString;
			cDelay.DoEvents();
		}

		private void PrintProgress(string ProgressString, int Count, int Max)
		{
			try
			{
				tssProgress.Minimum = 0;
				tssProgress.Maximum = Max;
				tssProgress.Value = Count;
				tssProgress.Visible = true;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
			tssPrintProgress.Text = ProgressString;
			cDelay.DoEvents();
		}

		private void ProjectProgress(string ProgressString)
		{
			try
			{
				Splash.UpdateSplash(ProgressString);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void CreateProjectSplash()
		{
			try
			{
				if (Splash == null)
				{
					Splash = new frmSplash(Resources.yWriter6SplashNew);
				}
				Splash.Show();
				cDelay.DoEventsForced();
				cProject.Progress += ProjectProgress;
				cProject.HideSplash += HideProjectSplash;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void HideProjectSplash()
		{
			try
			{
				cProject.Progress -= ProjectProgress;
				Splash.Hide();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void mnuUIFont_Click(object sender, EventArgs e)
		{
		}

		private void BackupToFTPToolStripMenuItem_Click(object sender, EventArgs e)
		{
		}

		private void RestoreAutobackupToolStripMenuItem_Click(object sender, EventArgs e)
		{
			Collection AllFiles = new Collection();
			clsShared.cFile.FillFilesRecursed(cProject.AutobackupsFolder, "*.zip", ref AllFiles);
			Collection collection = new Collection();
			IEnumerator enumerator = default(IEnumerator);
			try
			{
				enumerator = AllFiles.GetEnumerator();
				while (enumerator.MoveNext())
				{
					string text = Conversions.ToString(enumerator.Current);
					if (clsShared.cFile.FileOnly(text).StartsWith("Full Backup of"))
					{
						collection.Add(Path.Combine(cProject.AutobackupsFolder, text));
					}
					else if (clsShared.cFile.FileWithoutExt(text).EndsWith("_complete"))
					{
						collection.Add(Path.Combine(cProject.AutobackupsFolder, text));
					}
				}
			}
			finally
			{
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
			}
			if (collection.Count == 0)
			{
				Interaction.MsgBox("There are no complete autobackups for this project. You should check Tools - Backups - View Autobackups to see whether any individual scenes have been saved out.");
				return;
			}
			frmRestoreAutobackup frmRestoreAutobackup = new frmRestoreAutobackup();
			IEnumerator enumerator2 = default(IEnumerator);
			try
			{
				enumerator2 = collection.GetEnumerator();
				while (enumerator2.MoveNext())
				{
					string item = Conversions.ToString(enumerator2.Current);
					frmRestoreAutobackup.listAB.Items.Add(item);
				}
			}
			finally
			{
				if (enumerator2 is IDisposable)
				{
					(enumerator2 as IDisposable).Dispose();
				}
			}
			frmRestoreAutobackup.listAB.SelectedIndex = 0;
			frmRestoreAutobackup.ShowDialog();
			if (frmRestoreAutobackup.Cancelled)
			{
				return;
			}
			string text2 = Conversions.ToString(frmRestoreAutobackup.listAB.SelectedItem);
			if (text2 == null)
			{
				return;
			}
			bool flag;
			string path;
			do
			{
				flag = true;
				path = clsShared.cFileSel.GetPath(MyProject.Computer.FileSystem.SpecialDirectories.MyDocuments, "Create a folder to hold this project", BlankOnCancel: true);
				if (Operators.CompareString(path, "", TextCompare: false) != 0)
				{
					if (clsShared.cFile.FileExists(Path.Combine(path, "*.yw5")) | clsShared.cFile.FileExists(Path.Combine(path, "*.yw6")))
					{
						flag = false;
						Interaction.MsgBox("You must pick an empty folder - or at the very least, one which does not already contain a yWriter project");
					}
					continue;
				}
				return;
			}
			while (!flag);
			clsShared.cSubs.BusyMouse();
			if (new clsUnZip(text2).UnPackAll(path))
			{
				clsShared.cSubs.NormalMouse();
				Interaction.MsgBox("Your project has been extracted to " + path);
				clsShared.cFile.RunFile(clsShared.cFile.PathOnly(path), clsShared.cFile.PathOnly(path));
			}
			else
			{
				clsShared.cSubs.NormalMouse();
				Interaction.MsgBox("There was an error extracting the project. You might like to try extracting the file manually.");
				clsShared.cFile.RunFile(clsShared.cFile.PathOnly(text2), clsShared.cFile.PathOnly(text2));
			}
		}

		private void RemoveFormattingFromAllScenesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (!EditorWindowsOpenWarning() && Interaction.MsgBox("WARNING!\r\nThis will remove font style, size, bold, italics, underline and everything other type of formatting from every scene in your project, just leaving the text in your chosen font. Are you sure?", MsgBoxStyle.YesNo | MsgBoxStyle.Question) == MsgBoxResult.Yes)
			{
				ResetFormattingAcrossAllScenes();
			}
		}

		private void ResetFormattingAcrossAllScenes()
		{
			//Discarded unreachable code: IL_00e8, IL_00ff, IL_010a, IL_011a, IL_0170, IL_0172, IL_0186, IL_01a8
			int num = default(int);
			int num3 = default(int);
			try
			{
				ProjectData.ClearProjectError();
				num = 2;
				int num2 = 2;
				string familyName = clsShared.cSettings.sGet("EditorFontName", "Segoe UI");
				num2 = 3;
				float emSize = clsShared.cSettings.sGet("EditorFontSize", 10f);
				num2 = 4;
				RichTextBox richTextBox = new RichTextBox();
				num2 = 5;
				clsShared.cSubs.BusyMouse();
				num2 = 6;
				IEnumerator enumerator = cProject.Scenes.GetEnumerator();
				while (enumerator.MoveNext())
				{
					clsScene clsScene = (clsScene)enumerator.Current;
					num2 = 7;
					richTextBox.Clear();
					num2 = 8;
					richTextBox.Font = new Font(familyName, emSize);
					num2 = 9;
					richTextBox.Text = clsScene.ConvertedToPlainText();
					num2 = 10;
					clsScene.TextRTF = richTextBox.Rtf;
					num2 = 11;
					clsScene.Save();
					num2 = 12;
				}
				num2 = 13;
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
				num2 = 14;
				clsShared.cSubs.NormalMouse();
			}
			catch (Exception obj) when ((obj is Exception && num != 0) & (num3 == 0))
			{
				ProjectData.SetProjectError((Exception)obj);
				/*Error near IL_01a6: Could not find block for branch target IL_0172*/;
			}
			if (num3 != 0)
			{
				ProjectData.ClearProjectError();
			}
		}

		private void PrintSceneListToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				clsPrintSceneList clsPrintSceneList = new clsPrintSceneList();
				clsPrintSceneList.PrintProgress += PrintProgress;
				clsPrintSceneList.PrintSceneList(cProject);
				clsPrintSceneList.PrintProgress -= PrintProgress;
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void OpenProjectFolderToolStripMenuItem_Click(object sender, EventArgs e)
		{
			clsShared.cFile.RunFile(cProject.ProjectPath());
		}

		private void ToolStripMenuItem1_Click(object sender, EventArgs e)
		{
			if (!cProject.IsEmpty)
			{
				frmWordLog frmWordLog = new frmWordLog();
				frmWordLog.DataToForm(ref cProject);
				frmWordLog.ShowDialog();
				SaveProject(CriticalSave: false);
				DisplayProgressive(Recalc: true);
			}
		}

		private void NewNoteToolStripMenuItem_Click(object sender, EventArgs e)
		{
			SetupNoteForNew();
		}

		private void mnuNull_Click(object sender, EventArgs e)
		{
		}

		private void UseF3ToFindNext_Click(object sender, EventArgs e)
		{
		}

		private void _mnuUDW_0_Click(object sender, EventArgs e)
		{
		}

		private void YWriterWikiToolStripMenuItem_Click(object sender, EventArgs e)
		{
			clsShared.cWWW.WebSiteVisit("http://sites.google.com/site/ywritersj/");
		}

		private void SetupBooksAndPartsToolStripMenuItem_Click(object sender, EventArgs e)
		{
			new frmEditBooksParts(ref cProject).ShowDialog();
			SuppressUpdate = true;
			FillBookList();
			SuppressUpdate = false;
		}

		private void cmbBooks_SelectedIndexChanged(object sender, EventArgs e)
		{
		}

		private void fEdit_TileWindows()
		{
			int num = 0;
			int num2 = 0;
			int count = colEditors.Count;
			int width = Screen.PrimaryScreen.WorkingArea.Width;
			int height = Screen.PrimaryScreen.WorkingArea.Height;
			int num3 = 0;
			int num4 = 0;
			int num5 = 0;
			int num6 = 0;
			int num7;
			int num8;
			if (count == 1)
			{
				num7 = width;
				num8 = height;
			}
			else
			{
				num4 = (int)Math.Round(Math.Sqrt(count));
				if (num4 == 0)
				{
					num4++;
				}
				num3 = (int)Math.Round((double)count / (double)num4);
				if (num4 * num3 < count)
				{
					num3++;
				}
				num7 = (int)Math.Round((double)width / (double)num4);
				num8 = (int)Math.Round((double)height / (double)num3);
			}
			num5 = 1;
			IEnumerator enumerator = default(IEnumerator);
			try
			{
				enumerator = colEditors.GetEnumerator();
				while (enumerator.MoveNext())
				{
					frmEditor obj = (frmEditor)enumerator.Current;
					num6++;
					if (num6 > num4)
					{
						num6 = 1;
						num5++;
					}
					num = num7 * (num6 - 1);
					num2 = num8 * (num5 - 1);
					obj.TileWindow(num, num2, num7, num8);
				}
			}
			finally
			{
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
			}
		}

		private void fEdit_UntileWindows()
		{
			IEnumerator enumerator = default(IEnumerator);
			try
			{
				enumerator = colEditors.GetEnumerator();
				while (enumerator.MoveNext())
				{
					((frmEditor)enumerator.Current).UntileWindow();
				}
			}
			finally
			{
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
			}
		}

		private void tsmItemReportsToolStripMenuItem_Click(object sender, EventArgs e)
		{
		}

		private void RenumberScenesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			int num = SelectedChapterID();
			if (num <= 0)
			{
				clsShared.cLang.TransMsgBox("Select a chapter first");
				return;
			}
			clsChapter clsChapter = cProject.get_ChapterByID(num);
			bool flag = default(bool);
			try
			{
				int sceneCount = clsChapter.SceneCount;
				for (int i = 1; i <= sceneCount; i++)
				{
					int num2 = clsChapter.get_SceneIDByIndex(i);
					clsScene clsScene = cProject.get_SceneByID(num2);
					if (!clsScene.Locked)
					{
						if (clsScene.Title.StartsWith("Scene "))
						{
							clsScene.Title = "Scene " + Conversions.ToString(i);
							try
							{
								ListViewItem oItem = ListScenes.Items[Conversions.ToString(num2)];
								UpdateListItemFromScene(ref oItem, num2);
							}
							catch (Exception ex)
							{
								ProjectData.SetProjectError(ex);
								Exception ex2 = ex;
								clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
								ProjectData.ClearProjectError();
							}
						}
					}
					else
					{
						flag = true;
					}
				}
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			if (flag)
			{
				Interaction.MsgBox("One or more scenes could not be renumbered because they were open in the editor window");
			}
		}

		private void CombineSelectedScenesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (Interaction.MsgBox("This will combine the selected scenes, using the viewpoint from the first one and appending the title, descripion and content from the rest.\r\nAre you sure?", MsgBoxStyle.YesNo) == MsgBoxResult.No)
			{
				return;
			}
			Collection collection = new Collection();
			IEnumerator enumerator = default(IEnumerator);
			try
			{
				enumerator = ListScenes.SelectedItems.GetEnumerator();
				while (enumerator.MoveNext())
				{
					ListViewItem listViewItem = (ListViewItem)enumerator.Current;
					collection.Add(RuntimeHelpers.GetObjectValue(listViewItem.Tag));
					if (cProject.get_SceneByID(Conversions.ToInteger(listViewItem.Tag)).Locked)
					{
						Interaction.MsgBox("Merge cancelled. One or more of the selected scenes is locked. Please close all editor windows before trying again.");
						return;
					}
				}
			}
			finally
			{
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
			}
			clsRTF clsRTF = new clsRTF(ref clsShared.cLog, ref clsShared.cSettings);
			int iD = Conversions.ToInteger(collection[1]);
			clsScene clsScene = cProject.get_SceneByID(iD);
			int count = collection.Count;
			for (int i = 2; i <= count; i++)
			{
				iD = Conversions.ToInteger(collection[i]);
				clsScene clsScene2 = cProject.get_SceneByID(iD);
				int charCount = clsScene2.CharCount;
				for (int j = 1; j <= charCount; j++)
				{
					clsScene.AddCharByID(((clsSceneBase)clsScene2).get_CharID(j));
				}
				int locationCount = clsScene2.LocationCount;
				for (int j = 1; j <= locationCount; j++)
				{
					clsScene.AddLocationByID(((clsSceneBase)clsScene2).get_LocationID(j));
				}
				int itemCount = clsScene2.ItemCount;
				for (int j = 1; j <= itemCount; j++)
				{
					clsScene.AddItemByID(((clsSceneBase)clsScene2).get_ItemID(j));
				}
				clsScene.Notes = clsScene.Notes + "\r\n" + clsScene2.Notes;
				clsScene.Title = clsScene.Title + " " + clsScene2.Title;
				clsScene.DescText = clsScene.DescText + "\r\n" + clsScene2.DescText;
				clsRTF.SetRTF(clsScene.TextRTF);
				clsRTF.AppendPlainText("\r\n");
				clsRTF.AppendRTF(clsScene2.TextRTF);
				clsScene.TextRTF = clsRTF.GetRTF();
				clsScene clsScene3;
				(clsScene3 = clsScene).Goal = clsScene3.Goal + " " + clsScene2.Goal;
				(clsScene3 = clsScene).Conflict = clsScene3.Conflict + " " + clsScene2.Conflict;
				(clsScene3 = clsScene).Outcome = clsScene3.Outcome + " " + clsScene2.Outcome;
			}
			clsScene.TriggerSaveEvent();
			cProject.QuickSave();
			Interaction.MsgBox("Scenes merged. After confirming the changes are okay you need to remove the excess scenes.");
		}

		private void ManualGermanHTMLToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				string path = Path.Combine(App.Path, "help");
				path = Path.Combine(path, "index_ger.htm");
				clsShared.cHelp.ShowHelp(path);
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				ProjectData.ClearProjectError();
			}
		}

		private void ExportChapterToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (ListChapters.SelectedItems.Count == 0)
			{
				Interaction.MsgBox("Select one or more chapters first");
				return;
			}
			bool flag = false;
			if (Interaction.MsgBox("Include unused scenes and chapters?", MsgBoxStyle.YesNo) == MsgBoxResult.Yes)
			{
				flag = true;
			}
			RichTextBox richTextBox = new RichTextBox();
			int num = 0;
			IEnumerator enumerator = default(IEnumerator);
			try
			{
				enumerator = ListChapters.SelectedItems.GetEnumerator();
				while (enumerator.MoveNext())
				{
					ListViewItem obj = (ListViewItem)enumerator.Current;
					clsRTF clsRTF = new clsRTF(ref clsShared.cLog, ref clsShared.cSettings);
					int iD = Conversions.ToInteger(obj.Tag);
					clsChapter clsChapter = cProject.get_ChapterByID(iD);
					if (flag | (!clsChapter.Unused & (clsChapter.Type != ChapterTypes.ChapterNotes)))
					{
						clsRTF.SetRTF("[ChID:" + Conversions.ToString(clsChapter.ID) + "]");
						clsRTF.AppendPlainText("\r\n");
						int sceneCount = clsChapter.SceneCount;
						for (int i = 1; i <= sceneCount; i++)
						{
							clsScene clsScene = cProject.get_SceneByID(clsChapter.get_SceneIDByIndex(i));
							if (flag | !clsScene.Unused)
							{
								clsRTF.AppendPlainText("[ScID:" + Conversions.ToString(clsScene.ID) + "]\r\n");
								clsRTF.AppendRTF(clsScene.TextRTF + "\r\n");
								clsRTF.AppendPlainText("[/ScID]\r\n");
								num++;
							}
						}
						clsRTF.AppendPlainText("[/ChID]\r\n");
					}
					richTextBox.SelectedRtf = clsRTF.GetRTF();
					richTextBox.Select(0, 0);
					richTextBox.SelectionStart = richTextBox.Rtf.Length;
				}
			}
			finally
			{
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
			}
			string outputFilename = clsShared.cFileSel.GetOutputFilename("Specify your export file", cProject.ExportFolder(), "Exported Chapters.rtf", "*.rtf", !clsShared.cSettings.sGet("OverwriteExport", DefaultIfUnknown: false));
			if (Operators.CompareString(outputFilename, "", TextCompare: false) != 0)
			{
				clsShared.cFile.WriteAsciiForced(outputFilename, richTextBox.Rtf);
				Interaction.MsgBox("Exported " + Conversions.ToString(ListChapters.SelectedItems.Count) + " selected chapter(s) containing " + Conversions.ToString(num) + " scene(s).");
				clsShared.cFile.RunFile(clsShared.cFile.PathOnly(outputFilename));
			}
		}

		private void ImportChapterToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (Interaction.MsgBox("When importing proofed chapters, it's essential they were exported from the same project. Continue?", MsgBoxStyle.YesNo) == MsgBoxResult.No)
			{
				return;
			}
			string text = clsShared.cFileSel.AskForFilename("Select your chapter export file", cProject.ExportFolder(), "*.rtf");
			if (Operators.CompareString(text, "", TextCompare: false) == 0)
			{
				return;
			}
			string TextString = "";
			string text2 = "";
			clsShared.cFile.ReadTextFile(text, ref TextString, Encoding.ASCII);
			text2 = new clsRTF(ref clsShared.cLog, ref clsShared.cSettings).RTFToMarkup(TextString);
			int num = text2.IndexOf("[ScID:");
			if (num <= 0)
			{
				clsShared.cLog.AddAction("Error in RTF file - no scene ids present. You can only import chapters created with 'Export Chapter', and they must be from the same project.");
				Interaction.MsgBox("Error in RTF file - no scene ids present. You can only import chapters created with 'Export Chapter', and they must be from the same project.");
				return;
			}
			int num2 = 0;
			while (num > 0)
			{
				int num3 = text2.IndexOf("]", num);
				string[] array = Strings.Split(text2.Substring(num, num3 - num + 1), ":");
				if (array.Length >= 2)
				{
					string expression = array[1];
					expression = Strings.Replace(expression, ":", "");
					expression = Strings.Replace(expression, "]", "");
					if (!Versioned.IsNumeric(expression))
					{
						Interaction.MsgBox("Import cancelled - Scene ID was not a number in the import file");
						clsShared.cLog.AddAction("Error in RTF file - scene ID was not a number. Do not edit the [ScID] tags in the exported chapter file.");
						return;
					}
					int iD = (int)Math.Round(Conversion.Val(expression));
					if (cProject.get_SceneByID(iD).ID > 0)
					{
						clsScene clsScene = cProject.get_SceneByID(iD);
						num = num3;
						num3 = text2.IndexOf("[/ScID]", num);
						if (num3 <= 0)
						{
							Interaction.MsgBox("Closing scene tag not found in imported chapters file. Cannot import content for " + clsScene.Title);
						}
						else
						{
							string bodyText = text2.Substring(num + 1, num3 - num - 1);
							bodyText = clsShared.cText.StripCRLFFromEnd(bodyText);
							bodyText += "\r\n";
							clsScene.SetMarkup(bodyText);
							num2++;
							clsScene.TriggerSaveEvent();
						}
					}
					else
					{
						Interaction.MsgBox("Unknown Scene ID in the import file - this can happen if you deleted a scene from your project, OR if the scene tags in the exported file were altered.");
						clsShared.cLog.AddAction("Error in RTF file - scene ID unknown");
					}
				}
				num = text2.IndexOf("[ScID:", num3);
			}
			if (num2 > 0)
			{
				Interaction.MsgBox("Imported content for " + Conversions.ToString(num2) + " scene(s)");
			}
		}

		private void OldImportChapterToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (Interaction.MsgBox("When importing proofed chapters, it's essential they were exported from the same project. Continue?", MsgBoxStyle.YesNo) == MsgBoxResult.No)
			{
				return;
			}
			string text = clsShared.cFileSel.AskForFilename("Select your chapter export file", cProject.ExportFolder(), "*.rtf");
			if (Operators.CompareString(text, "", TextCompare: false) == 0)
			{
				return;
			}
			string TextString = "";
			clsShared.cFile.ReadTextFile(text, ref TextString, Encoding.ASCII);
			clsRTF clsRTF = new clsRTF(ref clsShared.cLog, ref clsShared.cSettings);
			clsRTF.SetRTF(TextString);
			int num = clsRTF.txtMain.Find("[ScID:");
			if (num == 0)
			{
				clsShared.cLog.AddAction("Error in RTF file - no scene ids present. You can only import chapters created with 'Export Chapter', and they must be from the same project.");
				Interaction.MsgBox("Error in RTF file - no scene ids present. You can only import chapters created with 'Export Chapter', and they must be from the same project.");
				return;
			}
			int num2 = 0;
			while (num > 0)
			{
				int num3 = clsRTF.txtMain.Find("]", num, RichTextBoxFinds.None);
				clsRTF.txtMain.Select(num, num3 - num + 1);
				string[] array = Strings.Split(clsRTF.txtMain.SelectedText, ":");
				if (array.Length >= 2)
				{
					string expression = array[1];
					expression = Strings.Replace(expression, ":", "");
					expression = Strings.Replace(expression, "]", "");
					if (!Versioned.IsNumeric(expression))
					{
						Interaction.MsgBox("Import cancelled - Scene ID was not a number in the import file");
						clsShared.cLog.AddAction("Error in RTF file - scene ID was not a number. Do not edit the [ScID] tags in the exported chapter file.");
						return;
					}
					int iD = (int)Math.Round(Conversion.Val(expression));
					if (cProject.get_SceneByID(iD).ID > 0)
					{
						clsScene clsScene = cProject.get_SceneByID(iD);
						num = num3;
						num3 = clsRTF.txtMain.Find("[/ScID]", num, RichTextBoxFinds.None);
						clsRTF.txtMain.Select(num + 1, num3 - num - 1);
						string selectedRtf = clsRTF.txtMain.SelectedRtf;
						clsScene.TextRTF = clsRTF.MarkupToRTF(selectedRtf);
						num2++;
						clsScene.TriggerSaveEvent();
					}
					else
					{
						Interaction.MsgBox("Unknown Scene ID in the import file - this can happen if you deleted a scene from your project, OR if the scene tags in the exported file were altered.");
						clsShared.cLog.AddAction("Error in RTF file - scene ID unknown");
					}
				}
				num = clsRTF.txtMain.Find("[ScID:", num3, RichTextBoxFinds.None);
			}
			if (num2 > 0)
			{
				Interaction.MsgBox("Imported content for " + Conversions.ToString(num2) + " scene(s)");
			}
		}

		private void WhyIsThisSoftwareFreeToolStripMenuItem_Click(object sender, EventArgs e)
		{
			clsShared.cWWW.VisitSpacejockComAu("WhyFree.html");
		}

		private void UpdateWindowTitle()
		{
			if (cProject != null)
			{
				if (cProject.IsEmpty)
				{
					Text = App.Title + " (c) Spacejock Software";
				}
				else
				{
					Text = cProject.Title + " by " + cProject.AuthorName + " - " + App.Title;
				}
				if (modVariables.Registered)
				{
					Text += " (Registered Version)";
				}
				else
				{
					Text += " (Unregistered Version)";
				}
			}
		}

		private void tssWordcount_Click(object sender, EventArgs e)
		{
		}

		private void txtChapterDesc_TextChanged(object sender, EventArgs e)
		{
		}

		private void ToEbookToolStripMenuItem_Click(object sender, EventArgs e)
		{
			clsExportToEbook clsExportToEbook = new clsExportToEbook();
			clsExportToEbook.Progress += delegate(string a0, long a1, long a2)
			{
				PrintProgress(a0, (int)a1, (int)a2);
			};
			clsExportToEbook.ExportToEbook(cProject, AskForOutputFile: true, AskWhichChapters: true, ToSingleFiles: false);
			tssProgress.Visible = false;
			tssPrintProgress.Text = "Export Done";
			cDelay.DoEvents();
		}

		private void DuplicateWordsToolStripMenuItem_Click(object sender, EventArgs e)
		{
			SearchLoc = 0;
			SearchString = "@Regex \\b(\\w+) \\1\\b";
			CaseSensitive = true;
			FindNext();
		}

		private void tsbExportToLaTeX_Click(object sender, EventArgs e)
		{
			new clsExportRTFToLaTeX().Export(cProject, AskWhichChapters: true);
		}

		private void KeyboardShortcutsToolStripMenuItem_Click(object sender, EventArgs e)
		{
			Interaction.MsgBox("Ctrl+Shift+X - Export to LaTeX\r\nCtrl+Shift+E - Edit current scene\r\nCtrl+Shift+S - Save project\r\nCtrl+Shift+B - Backup entire project");
		}

		private void ProjectNotesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (new clsExportNotes().Export(ref cProject))
			{
				clsShared.cFile.RunFile(cProject.ExportFolder());
			}
		}

		private void LaTeXHelpToolStripMenuItem_Click(object sender, EventArgs e)
		{
			Interaction.MsgBox("See Project Settings to customise LaTeX header.\r\nIf the very first word in the scene is '<TEX>' (uppercase) then all text in the scene is exported as-is. In other words, you need to mark up the rest of the scene using LaTeX code.\r\n\r\nYou can also insert blocks of LaTeX code into ordinary scenes by enclosing each section between <TEX and /TEX> tags");
			Interaction.MsgBox("Note that scenes starting with <html> are ignored by the LaTeX exporter.");
		}

		private void EbookHelpToolStripMenuItem_Click(object sender, EventArgs e)
		{
			Interaction.MsgBox("If the very first word in the scene is '<html>' (lowercase) then all text in the scene is exported as-is. In other words, you need to mark up the rest of the scene using valid HTML code.");
			Interaction.MsgBox("Note that scenes starting with <TEX> and sections enclosed by <TEX and /TEX> are ignored by the ebook html exporter.");
		}

		private void LikeYWriterOnFacebookToolStripMenuItem_Click(object sender, EventArgs e)
		{
			clsShared.cWWW.WebSiteVisit("http://www.facebook.com/halspacejock");
		}

		private void ctxScenesToClipboard_Click(object sender, EventArgs e)
		{
			clsCollection<int> clsCollection = new clsCollection<int>();
			Clipboard.Clear();
			try
			{
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = ListScenes.SelectedItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						int iD = Conversions.ToInteger(((ListViewItem)enumerator.Current).Tag);
						clsScene clsScene = cProject.get_SceneByID(iD);
						if (clsScene.Locked)
						{
							Interaction.MsgBox("Please close the editor window for this scene first.");
							return;
						}
						clsCollection.Add(clsScene.ID);
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				Clipboard.SetText("<FILENAME>" + cProject.FileWithPath + "</FILENAME>\r\n" + cProject.PackageScenes(clsCollection));
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void TabControlMain_TabIndexChanged(object sender, EventArgs e)
		{
			if (!TabControlMain.SelectedTab.Equals(TabChapterScenes))
			{
				if (cProject == null)
				{
					TabControlMain.SelectedTab = TabChapterScenes;
				}
				else if (cProject.IsEmpty)
				{
					TabControlMain.SelectedTab = TabChapterScenes;
				}
			}
		}

		private void tsmCopyChapters_Click(object sender, EventArgs e)
		{
			clsCollection<int> clsCollection = new clsCollection<int>();
			Clipboard.Clear();
			try
			{
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = ListChapters.SelectedItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						int iD = Conversions.ToInteger(((ListViewItem)enumerator.Current).Tag);
						clsChapter clsChapter = cProject.get_ChapterByID(iD);
						clsCollection.Add(clsChapter.ID);
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			try
			{
				Clipboard.SetText("<FILENAME>" + cProject.FileWithPath + "</FILENAME>\r\n" + cProject.PackageChapters(clsCollection));
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ctxPasteScenesFromClipboard_Click(object sender, EventArgs e)
		{
			int num = SelectedChapterID();
			if (num <= 0 || !Clipboard.ContainsText())
			{
				return;
			}
			string text = Clipboard.GetText();
			if (text.StartsWith("<FILENAME>"))
			{
				if (Operators.CompareString(cXml.ExtractBetweenTags(text, "<FILENAME>", "</FILENAME>"), cProject.FileWithPath, TextCompare: false) == 0)
				{
					clsShared.cLang.TransMsgBox("This feature is designed to transfer scenes between different projects. You can't copy/paste scenes within the same project.");
					return;
				}
				bool merge;
				switch (clsShared.cLang.TransMsgBox("Do you want to merge new characters, items and locations with existing ones? (Discards new ones with identical short names)", MsgBoxStyle.YesNoCancel))
				{
				case MsgBoxResult.Cancel:
					return;
				case MsgBoxResult.Yes:
					merge = true;
					break;
				default:
					merge = false;
					break;
				}
				cProject.PasteScenes(num, text, merge);
				DisplayProject();
			}
			else
			{
				clsShared.cLang.TransMsgBox("Use 'Copy to Clipboard' first");
			}
		}

		private void tsmPasteChapters_Click(object sender, EventArgs e)
		{
			if (cProject.IsEmpty || !Clipboard.ContainsText())
			{
				return;
			}
			string text = Clipboard.GetText();
			if (text.StartsWith("<FILENAME>"))
			{
				if (Operators.CompareString(cXml.ExtractBetweenTags(text, "<FILENAME>", "</FILENAME>"), cProject.FileWithPath, TextCompare: false) == 0)
				{
					clsShared.cLang.TransMsgBox("You can't copy/paste chapters within the same project. This feature is designed to transfer them between different projects.");
					return;
				}
				bool merge;
				switch (clsShared.cLang.TransMsgBox("Do you want to merge new characters, items and locations with existing ones? (Discards new ones with identical short names)", MsgBoxStyle.YesNoCancel))
				{
				case MsgBoxResult.Cancel:
					return;
				case MsgBoxResult.Yes:
					merge = true;
					break;
				default:
					merge = false;
					break;
				}
				cProject.PasteChapters(text, merge);
				DisplayProject();
			}
			else
			{
				clsShared.cLang.TransMsgBox("Use 'Copy to Clipboard' first");
			}
		}

		private void ctxSetStatus_Click(object sender, EventArgs e)
		{
		}

		private void SelectedScenesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (clsShared.cLang.TransMsgBox("Warning! This will update the title for all selected scenes, using the first line from each. Are you sure?", MsgBoxStyle.YesNo) == MsgBoxResult.Yes)
			{
				CopyFirstLineToTitles(eCopyWhat.eSelected);
			}
		}

		private void CopyFirstLineToTitles(eCopyWhat What)
		{
			Collection collection = new Collection();
			switch (What)
			{
			case eCopyWhat.eAll:
			{
				IEnumerator enumerator3 = default(IEnumerator);
				try
				{
					enumerator3 = cProject.Scenes.GetEnumerator();
					while (enumerator3.MoveNext())
					{
						clsScene clsScene = (clsScene)enumerator3.Current;
						if (!clsScene.Unused)
						{
							collection.Add(clsScene.ID);
						}
					}
				}
				finally
				{
					if (enumerator3 is IDisposable)
					{
						(enumerator3 as IDisposable).Dispose();
					}
				}
				break;
			}
			case eCopyWhat.eChapters:
			{
				IEnumerator enumerator2 = default(IEnumerator);
				try
				{
					enumerator2 = ListChapters.SelectedItems.GetEnumerator();
					while (enumerator2.MoveNext())
					{
						int iD = Conversions.ToInteger(((ListViewItem)enumerator2.Current).Tag);
						clsChapter clsChapter = cProject.get_ChapterByID(iD);
						int sceneCount = clsChapter.SceneCount;
						for (int i = 1; i <= sceneCount; i++)
						{
							int iD2 = cProject.get_SceneByID(clsChapter.get_SceneIDByIndex(i)).ID;
							collection.Add(iD2);
						}
					}
				}
				finally
				{
					if (enumerator2 is IDisposable)
					{
						(enumerator2 as IDisposable).Dispose();
					}
				}
				break;
			}
			case eCopyWhat.eSelected:
			{
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = ListScenes.SelectedItems.GetEnumerator();
					while (enumerator.MoveNext())
					{
						ListViewItem listViewItem = (ListViewItem)enumerator.Current;
						collection.Add(Conversions.ToInteger(listViewItem.Tag));
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
				break;
			}
			}
			IEnumerator enumerator4 = default(IEnumerator);
			int num = default(int);
			try
			{
				enumerator4 = collection.GetEnumerator();
				while (enumerator4.MoveNext())
				{
					int iD3 = Conversions.ToInteger(enumerator4.Current);
					clsScene clsScene = cProject.get_SceneByID(iD3);
					clsChapter clsChapter = cProject.get_ChapterByID(clsScene.BelongsToChID);
					if (clsChapter.Unused | (clsChapter.Type == ChapterTypes.ChapterNotes) | clsChapter.Title.StartsWith("@"))
					{
						num++;
					}
					else
					{
						string StringtoStrip = clsScene.ConvertedToPlainText();
						RemoveRawCode(ref StringtoStrip);
						int num2 = clsShared.cText.FindFirst(StringtoStrip, ".?!");
						if (num2 == 0)
						{
							num2 = 220;
							if (num2 > StringtoStrip.Length)
							{
								num2 = Conversions.ToInteger(StringtoStrip);
							}
						}
						if (num2 > 0)
						{
							string text = Strings.Left(clsScene.ConvertedToPlainText(), num2);
							text = text.Trim();
							if (text.Length > 200)
							{
								text = text.Substring(0, 200);
								text += " ...";
							}
							if (text.StartsWith("\"") & !text.EndsWith("\""))
							{
								text += "\"";
							}
							if (text.StartsWith("'") & !text.EndsWith("'"))
							{
								text += "'";
							}
							if (Operators.CompareString(text.Trim(), "", TextCompare: false) != 0)
							{
								clsScene.Title = text;
								clsScene.Save();
							}
							else
							{
								num++;
							}
						}
					}
				}
			}
			finally
			{
				if (enumerator4 is IDisposable)
				{
					(enumerator4 as IDisposable).Dispose();
				}
			}
			if (num > 0)
			{
				clsShared.cLang.TransMsgBox("Skipped " + Conversions.ToString(num) + " scene(s) due to empty content, marked unused, chapter marked as info or chapter title suppressed (starts with @)");
			}
		}

		private void SelectedChaptersToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (clsShared.cLang.TransMsgBox("Warning! This will update the title for ALL SELECTED CHAPTERS, using the first line from each. Are you sure?", MsgBoxStyle.YesNo) == MsgBoxResult.Yes)
			{
				CopyFirstLineToTitles(eCopyWhat.eChapters);
			}
		}

		private void AllScenesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (clsShared.cLang.TransMsgBox("Warning! This will update the title for EVERY SCENE IN THE PROJECT, using the first line from each. Are you sure?", MsgBoxStyle.YesNo) == MsgBoxResult.Yes)
			{
				CopyFirstLineToTitles(eCopyWhat.eAll);
			}
		}

		private void RemoveRawCode(ref string StringtoStrip)
		{
			if (StringtoStrip.ToLower().StartsWith("<html>"))
			{
				StringtoStrip = "";
			}
			if (StringtoStrip.ToLower().StartsWith("<tex>"))
			{
				StringtoStrip = "";
			}
			clsShared.cHtml.StripBetweenTags(ref StringtoStrip, "<TEX ", " /TEX>");
			clsShared.cHtml.StripBetweenTags(ref StringtoStrip, "<tex ", " /tex>");
			clsShared.cHtml.StripBetweenTags(ref StringtoStrip, "<HTM ", " /HTM>");
			clsShared.cHtml.StripBetweenTags(ref StringtoStrip, "<htm ", " /htm>");
			clsShared.cHtml.StripBetweenTags(ref StringtoStrip, "<RTF ", " /RTF>");
			clsShared.cHtml.StripBetweenTags(ref StringtoStrip, "<rtf ", " /rtf>");
			clsShared.cHtml.StripBetweenTags(ref StringtoStrip, "<rtf img", "/img>");
			clsShared.cHtml.StripBetweenTags(ref StringtoStrip, "<rtf url", "/url>");
		}

		private void HelpToolStripMenuItem_Click(object sender, EventArgs e)
		{
			clsShared.cLang.TransMsgBox("First, export selected chapters. This will generate a specially-marked-up RTF file you can open with your word processor of choice.\r\nComplete your grammar and spell check, but DO NOT alter or delete the special [CHID] and [SCID] marks.\r\nWhen proofing is complete, save the file from your word processor as RTF and use yWriter's 'Import Proofed Chapter(s)'.\r\nWhen importing, yWriter will ONLY replace the content in existing scenes. It will not add new chapters and scenes.");
		}

		private void MarkAsStartOfMainMatterToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				int num = SelectedChapterID();
				if (num != 0)
				{
					cProject.EndFrontmatterChID = num;
					DisplayProject();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void SimonHaynesOnTwitterToolStripMenuItem_Click(object sender, EventArgs e)
		{
			clsShared.cWWW.WebSiteVisit("http://www.twitter.com/spacejock");
		}

		private void CreateOutlineFromSceneToolStripMenuItem_Click(object sender, EventArgs e)
		{
			int iD = mvarSelectedSceneID;
			int num = 0;
			int num2 = 0;
			string strMsg = "This routine will parse the selected scene and create one new scene for every sentence. It will create a new chapter for every blank line.";
			if (clsShared.cLang.TransMsgBox(strMsg, MsgBoxStyle.YesNo) == MsgBoxResult.Yes)
			{
				string text = cProject.get_SceneByID(iD).ConvertedToPlainText().Trim();
				clsShared.cText.CRLF2LF(text);
				string[] array = Strings.Split(text, "\n");
				if (array.Length > 0)
				{
					num++;
					clsChapter cChapter = new clsChapter();
					cChapter.Title = "New Chapter " + Conversions.ToString(num);
					cProject.AddChapter(ref cChapter);
					int iD2 = cChapter.ID;
					string[] array2 = array;
					foreach (string text2 in array2)
					{
						if (Operators.CompareString(text2.Trim(), "", TextCompare: false) == 0)
						{
							num++;
							cChapter = new clsChapter();
							cChapter.Title = "New Chapter " + Conversions.ToString(num);
							cProject.AddChapter(ref cChapter);
							iD2 = cChapter.ID;
						}
						else
						{
							num2++;
							clsScene Scene = new clsScene();
							Scene.V6 = cProject.V6File;
							Scene.Title = text2;
							cProject.AddSceneToProjectAndChapter(ref Scene, iD2);
						}
					}
				}
			}
			Interaction.MsgBox("Added " + Conversions.ToString(num) + " chapters and " + Conversions.ToString(num2) + " scenes.");
		}

		private void ApplyOutlineToolStripMenuItem_Click(object sender, EventArgs e)
		{
			frmImportOutline frmImportOutline = new frmImportOutline();
			_ = mvarSelectedSceneID;
			int num = 0;
			TreeNode treeNode = null;
			try
			{
				frmImportOutline.ShowDialog();
				if (!frmImportOutline.Cancelled)
				{
					treeNode = frmImportOutline.TreeView1.Nodes[0];
					int count = treeNode.Nodes.Count;
					IEnumerator enumerator = default(IEnumerator);
					for (int i = 1; i <= count; i++)
					{
						TreeNode treeNode2 = treeNode.Nodes[i - 1];
						clsChapter cChapter = new clsChapter();
						cChapter.Title = treeNode2.Text;
						cChapter.DescText = Conversions.ToString(treeNode2.Tag);
						cProject.AddChapter(ref cChapter);
						int iD = cChapter.ID;
						try
						{
							enumerator = treeNode2.Nodes.GetEnumerator();
							while (enumerator.MoveNext())
							{
								TreeNode treeNode3 = (TreeNode)enumerator.Current;
								num++;
								clsScene Scene = new clsScene();
								Scene.V6 = cProject.V6File;
								Scene.Title = treeNode3.Text;
								Scene.DescText = Conversions.ToString(treeNode3.Tag);
								cProject.AddSceneToProjectAndChapter(ref Scene, iD);
							}
						}
						finally
						{
							if (enumerator is IDisposable)
							{
								(enumerator as IDisposable).Dispose();
							}
						}
					}
				}
				try
				{
					Interaction.MsgBox("Added " + Conversions.ToString(treeNode.Nodes.Count) + " chapters and " + Conversions.ToString(num) + " scenes.");
				}
				catch (Exception ex)
				{
					ProjectData.SetProjectError(ex);
					Exception ex2 = ex;
					ProjectData.ClearProjectError();
				}
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ForceWordcountToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				clsShared.cSubs.BusyMouse();
				IEnumerator enumerator = default(IEnumerator);
				try
				{
					enumerator = cProject.Scenes.GetEnumerator();
					while (enumerator.MoveNext())
					{
						((clsScene)enumerator.Current).ForceWordcount();
					}
				}
				finally
				{
					if (enumerator is IDisposable)
					{
						(enumerator as IDisposable).Dispose();
					}
				}
				cProject.Wordcount();
				DisplayProgressive(Recalc: true);
				clsShared.cSubs.NormalMouse();
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void OpenContainingFolderToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				clsShared.cFile.RunFile(Path.Combine(cProject.ProjectPath(), "RTF5"));
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void DuplicateThisSceneToolStripMenuItem_Click(object sender, EventArgs e)
		{
			clsScene NewScene = new clsScene();
			Collection collection = new Collection();
			IEnumerator enumerator = default(IEnumerator);
			try
			{
				enumerator = ListScenes.SelectedItems.GetEnumerator();
				while (enumerator.MoveNext())
				{
					ListViewItem listViewItem = (ListViewItem)enumerator.Current;
					try
					{
						cProject.get_SceneByID(Conversions.ToInteger(listViewItem.Tag)).CloneTo(ref NewScene);
						NewScene.ID = 0;
						NewScene.ForceNewRTFFile();
						NewScene.SaveRTFV5(cProject.ProjectPath());
						NewScene.SortOrder += 100;
						collection.Add(NewScene);
					}
					catch (Exception ex)
					{
						ProjectData.SetProjectError(ex);
						Exception ex2 = ex;
						clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
						ProjectData.ClearProjectError();
					}
				}
			}
			finally
			{
				if (enumerator is IDisposable)
				{
					(enumerator as IDisposable).Dispose();
				}
			}
			IEnumerator enumerator2 = default(IEnumerator);
			try
			{
				enumerator2 = collection.GetEnumerator();
				while (enumerator2.MoveNext())
				{
					NewScene = (clsScene)enumerator2.Current;
					cProject.AddSceneToProjectAndChapter(ref NewScene, NewScene.BelongsToChID);
				}
			}
			finally
			{
				if (enumerator2 is IDisposable)
				{
					(enumerator2 as IDisposable).Dispose();
				}
			}
		}

		private void tsmExportRTFChapters_Click(object sender, EventArgs e)
		{
			new clsExportToRTF().ExportToRTF(cProject, ByChapter: true, SaveSummaries: false);
		}

		private void RegisterToolStripMenuItem_Click(object sender, EventArgs e)
		{
			new frmReg(ref clsShared.cLog, ref clsShared.cSettings, "YW6", "yWriter6").ShowDialog();
			CheckReg();
			if (modVariables.Registered)
			{
				clsShared.cLog.LogEvent("Registered to " + modVariables.RegName);
			}
		}

		private void CheckReg()
		{
			modVariables.RegName = "";
			modVariables.RegSerial = "";
			modVariables.Registered = false;
			try
			{
				modVariables.RegName = clsShared.cDecrypt.DecryptWithUnwrapW(clsShared.cSettings.sGet("RegName", ""));
				modVariables.RegSerial = clsShared.cDecrypt.DecryptWithUnwrapW(clsShared.cSettings.sGet("RegSer", ""));
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
			modVariables.Registered = true;
			/*try
			{
				if (clsShared.cReg.PassedReg("YW5", modVariables.RegName, modVariables.RegSerial))
				{
					modVariables.Registered = true;
				}

				if (!modVariables.Registered && clsShared.cReg.PassedReg("YW6", modVariables.RegName, modVariables.RegSerial))
				{
					modVariables.Registered = true;
				}
			}
			catch (Exception ex3)
			{
				ProjectData.SetProjectError(ex3);
				Exception ex4 = ex3;
				clsShared.cLog.AddAction(ex4, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}*/
			UpdateWindowTitle();
		}

		private void DisplaySpecificScene(int ScID)
		{
			clsScene clsScene = cProject.get_SceneByID(ScID);
			if (clsScene.ID != -1)
			{
				string key = Conversions.ToString(clsScene.BelongsToChID);
				if (ListChapters.Items.ContainsKey(key))
				{
					IEnumerator enumerator = default(IEnumerator);
					try
					{
						enumerator = ListChapters.Items.GetEnumerator();
						while (enumerator.MoveNext())
						{
							((ListViewItem)enumerator.Current).Selected = false;
						}
					}
					finally
					{
						if (enumerator is IDisposable)
						{
							(enumerator as IDisposable).Dispose();
						}
					}
					SuppressUpdate = true;
					ListChapters.Items[key].Selected = true;
					ListChapters.FocusedItem = ListChapters.Items[key];
					DisplayFocusedChapter();
					SuppressUpdate = false;
					SelectScene(ScID);
				}
			}
		}

		private void ProjectVariablesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (!cProject.IsEmpty)
			{
				frmEditVariables frmEditVariables = new frmEditVariables();
				frmEditVariables.DisplayVar(cProject.cVars, "Project variables");
				frmEditVariables.ShowDialog();
			}
		}

		private void GlobalVariablesToolStripMenuItem_Click(object sender, EventArgs e)
		{
			frmEditVariables frmEditVariables = new frmEditVariables();
			frmEditVariables.DisplayVar(modVariables.cVarsGlobal, "Global variables");
			frmEditVariables.ShowDialog();
			try
			{
				StringBuilder SBP = new StringBuilder();
				modVariables.cVarsGlobal.WriteXML(ref SBP);
				clsShared.cFile.WriteTextFile(modConstants.GLOBALS_FILE, SBP.ToString());
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void tabSceneGoals_Click(object sender, EventArgs e)
		{
		}

		private void ConfigureSMTPServerToolStripMenuItem_Click(object sender, EventArgs e)
		{
			try
			{
				SJMail.clsServer ServerToEdit = (modVariables.cServers.Servers.Count <= 0) ? new SJMail.clsServer() : ((SJMail.clsServer)modVariables.cServers.Servers[1]);
				frmEditServer frmEditServer = new frmEditServer();
				frmEditServer.DataToForm(ref ServerToEdit, POP3: false);
				frmEditServer.ShowDialog();
				if (!frmEditServer.Cancelled)
				{
					modVariables.cServers.AddReplace(ref ServerToEdit);
					modVariables.cServers.SaveServers();
				}
			}
			catch (Exception ex)
			{
				ProjectData.SetProjectError(ex);
				Exception ex2 = ex;
				clsShared.cLog.AddAction(ex2, MethodBase.GetCurrentMethod());
				ProjectData.ClearProjectError();
			}
		}

		private void ConfigureRecipientEmailToolStripMenuItem_Click(object sender, EventArgs e)
		{
			ConfigureEmail();
		}

		private bool ConfigureEmail()
		{
			string defaultResponse = clsShared.cSettings.sGet("EmailBackupAddr", "");
			string text = Interaction.InputBox("Enter the email address to send your backup to", "Email Backup", defaultResponse);
			bool result = default(bool);
			if (!text.Contains("@"))
			{
				Interaction.MsgBox("Email address must contain @");
			}
			else if (Operators.CompareString(text, "", TextCompare: false) != 0)
			{
				result = true;
				clsShared.cSettings.sSet("EmailBackupAddr", text);
			}
			return result;
		}

		private void BackupToEmailToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (modVariables.cServers.Servers.Count == 0)
			{
				Interaction.MsgBox("Please set up a mail server first");
				return;
			}
			string text = clsShared.cSettings.sGet("EmailBackupAddr", "");
			if (Operators.CompareString(text, "", TextCompare: false) == 0)
			{
				if (!ConfigureEmail())
				{
					return;
				}
				text = clsShared.cSettings.sGet("EmailBackupAddr", "");
			}
			if (!text.Contains("@") & !text.Contains("."))
			{
				Interaction.MsgBox("Email addresses must contain @ and .");
			}
			else
			{
				if (!cProject.NotBlank() || !SaveProject(CriticalSave: false))
				{
					return;
				}
				tssStatus.Text = "Performing full backup";
				cDelay.DoEvents();
				if (!cProject.BackupProject(WithSceneContent: true))
				{
					return;
				}
				tssStatus.Text = "Connecting to server";
				cDelay.DoEvents();
				clsSMTPWithSSL clsSMTPWithSSL = new clsSMTPWithSSL();
				clsMessage clsMessage = new clsMessage();
				SJMail.clsServer cServer = (SJMail.clsServer)modVariables.cServers.Servers[1];
				clsMessage.Sender = text;
				clsMessage.To_Email = text;
				clsMessage.AddAttachment(cProject.TodaysBackupFilename(WithSceneContent: true));
				clsMessage.Subject = "yWriter6 emailed backup of " + cProject.Title + " sent " + Conversions.ToString(DateAndTime.Now);
				clsMessage.MessageBody = "Autobackup of " + cProject.Title + " by " + cProject.AuthorName + " sent " + Conversions.ToString(DateAndTime.Now);
				if (clsSMTPWithSSL.Connect(cServer))
				{
					tssStatus.Text = "Sending email";
					cDelay.DoEvents();
					if (clsSMTPWithSSL.SendEmail(clsMessage))
					{
						tssStatus.Text = "Email sent";
					}
					else
					{
						Interaction.MsgBox("Unable to send email");
					}
				}
				else
				{
					Interaction.MsgBox("Unable to connect to mail server");
				}
			}
		}

		private void ToEbooktoChaptersToolStripMenuItem_Click(object sender, EventArgs e)
		{
			clsExportToEbook clsExportToEbook = new clsExportToEbook();
			clsExportToEbook.Progress += delegate(string a0, long a1, long a2)
			{
				PrintProgress(a0, (int)a1, (int)a2);
			};
			clsExportToEbook.ExportToEbook(cProject, AskForOutputFile: false, AskWhichChapters: true, ToSingleFiles: true);
			tssProgress.Visible = false;
			tssPrintProgress.Text = "Export Done";
			cDelay.DoEvents();
		}

		private void ListScenes_MouseClick(object sender, MouseEventArgs e)
		{
			if (e.Button == MouseButtons.Right && clsShared.cOSInfo.IsWine())
			{
				Console.WriteLine("Right mouse clicked on list - should open ctxScenes now");
			}
		}

		private void frmMain_MouseClick(object sender, MouseEventArgs e)
		{
			if (e.Button == MouseButtons.Right && clsShared.cOSInfo.IsWine())
			{
				Console.WriteLine("Right mouse clicked on form");
			}
		}

		private void EditCustomExportersToolStripMenuItem_Click(object sender, EventArgs e)
		{
			new frmPresets(ref cProject).ShowDialog();
		}

		private void ConfigureAlternativeBackupFolderToolStripMenuItem_Click(object sender, EventArgs e)
		{
			string defaultResponse = clsShared.cSettings.sGet("AltBackupFolder_" + App.ComputerName, "");
			defaultResponse = Interaction.InputBox("Please specify your alternate backup folder", "Alternative Backup Folder", defaultResponse);
			if (Operators.CompareString(defaultResponse, "", TextCompare: false) != 0)
			{
				clsShared.cSettings.sSet("AltBackupFolder_" + App.ComputerName, defaultResponse);
			}
		}

		private void StartServerToolStripMenuItem_Click(object sender, EventArgs e)
		{
			int num = (int)Math.Round(clsShared.cSettings.sGet("ServerPort", 0));
			if (num == 0)
			{
				Interaction.MsgBox("You must set the server port first, in Project Settings");
				return;
			}
			modVariables.Server = new clsNetHost();
			modVariables.Server.StartServer(num);
			StartServerToolStripMenuItem.Enabled = false;
			StopServerToolStripMenuItem.Enabled = true;
		}

		private void StopServerToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (modVariables.Server != null)
			{
				modVariables.Server.StopServer();
				modVariables.Server = null;
			}
			StartServerToolStripMenuItem.Enabled = true;
			StopServerToolStripMenuItem.Enabled = false;
		}

		private void CollaborationToolStripMenuItem_Click(object sender, EventArgs e)
		{
		}

		private void mnuChooseLang_Click(object sender, EventArgs e)
		{
		}

		private void SaveAsYw6ProjectToolStripMenuItem_Click(object sender, EventArgs e)
		{
			if (!cProject.IsEmpty && Interaction.MsgBox("This will save your current project in yw6 format. Are you sure?", MsgBoxStyle.YesNo) != MsgBoxResult.No)
			{
				SaveProject(CriticalSave: true);
				if (!cProject.V6File)
				{
					cProject.UnlockProject(cProject.FileWithPath);
					IEnumerator enumerator = default(IEnumerator);
					try
					{
						enumerator = cProject.Scenes.GetEnumerator();
						while (enumerator.MoveNext())
						{
							((clsScene)enumerator.Current).ForceConvertToMarkup();
						}
					}
					finally
					{
						if (enumerator is IDisposable)
						{
							(enumerator as IDisposable).Dispose();
						}
					}
					cProject.V6File = true;
					SaveProject(CriticalSave: true);
					tssStatus.Text = cProject.FileWithPath;
					Interaction.MsgBox("Your project is now stored in yw6 format. Any changes you make to your project will now be stored in the new file, not your original ywriter5 project.");
				}
				else
				{
					Interaction.MsgBox("This is already a yw6 project");
				}
			}
		}

		private void txtBody_TextChanged(object sender, EventArgs e)
		{
		}

		private void ToolStripMenuItem2_Click(object sender, EventArgs e)
		{
			ImportWork(V6: true);
		}

		private void ToolStripMenuItem1_Click_1(object sender, EventArgs e)
		{
			NewProj(V6File: true);
		}

		private void WhatIsThisMenuForToolStripMenuItem_Click(object sender, EventArgs e)
		{
			Interaction.MsgBox("These options are for creating/exporting projects in the new yw6 format, which is compatible with yWriter Android and iOS.");
		}

		private void YWriterAndroidComingSoonToolStripMenuItem_Click(object sender, EventArgs e)
		{
			clsShared.cWWW.WebSiteVisit("http://www.spacejock.com/yWriterAndroid.html");
		}

		[CompilerGenerated]
		private void _Lambda_0024__R2256_002D1(string a0, long a1, long a2)
		{
			PrintProgress(a0, (int)a1, (int)a2);
		}

		[CompilerGenerated]
		private void _Lambda_0024__R2294_002D2(string a0, long a1, long a2)
		{
			PrintProgress(a0, (int)a1, (int)a2);
		}
	}
}
